Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / SessionEndingCancelEventArgs.cs / 1 / SessionEndingCancelEventArgs.cs
//-------------------------------------------------------------------------------------------------- // File: SessionEndingCancelEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // OnSessionEnding is called to raise the SessionEnding event. The developer will // typically override this method if they want to take action when the OS is ending // a session ( or they may choose to attach an event). // // This method will be called when the user has chosen to either logoff or shutdown. // These events are equivalent to receiving a WM_QUERYSESSION window event. // Windows will send it when user is logging out/shutting down. // ( See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/wm_queryendsession.asp ). // // By default if this event is not cancelled – Avalon will then call Application.Shutdown. // // History: // 08/10/04: kusumav Moved out of Application.cs to its own separate file. // //------------------------------------------------------------------------------------------------- using System.ComponentModel; namespace System.Windows { ////// Event args for StartingUp event /// public class SessionEndingCancelEventArgs : CancelEventArgs { ////// constructor /// internal SessionEndingCancelEventArgs(ReasonSessionEnding reasonSessionEnding) { _reasonSessionEnding = reasonSessionEnding; } ////// The ReasonSessionEnding enum on the SessionEndingEventArgs indicates whether /// the session is ending in response to a shutdown of the OS, or if the user /// is logging off /// public ReasonSessionEnding ReasonSessionEnding { get { return _reasonSessionEnding; } } private ReasonSessionEnding _reasonSessionEnding; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------------------- // File: SessionEndingCancelEventArgs.cs // // Copyright (C) 2004 by Microsoft Corporation. All rights reserved. // // Description: // OnSessionEnding is called to raise the SessionEnding event. The developer will // typically override this method if they want to take action when the OS is ending // a session ( or they may choose to attach an event). // // This method will be called when the user has chosen to either logoff or shutdown. // These events are equivalent to receiving a WM_QUERYSESSION window event. // Windows will send it when user is logging out/shutting down. // ( See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/wm_queryendsession.asp ). // // By default if this event is not cancelled – Avalon will then call Application.Shutdown. // // History: // 08/10/04: kusumav Moved out of Application.cs to its own separate file. // //------------------------------------------------------------------------------------------------- using System.ComponentModel; namespace System.Windows { ////// Event args for StartingUp event /// public class SessionEndingCancelEventArgs : CancelEventArgs { ////// constructor /// internal SessionEndingCancelEventArgs(ReasonSessionEnding reasonSessionEnding) { _reasonSessionEnding = reasonSessionEnding; } ////// The ReasonSessionEnding enum on the SessionEndingEventArgs indicates whether /// the session is ending in response to a shutdown of the OS, or if the user /// is logging off /// public ReasonSessionEnding ReasonSessionEnding { get { return _reasonSessionEnding; } } private ReasonSessionEnding _reasonSessionEnding; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CqlBlock.cs
- ListViewInsertEventArgs.cs
- HttpPostedFile.cs
- Rect3D.cs
- CodeMemberMethod.cs
- KeyValuePair.cs
- FormViewCommandEventArgs.cs
- EFDataModelProvider.cs
- HostUtils.cs
- Slider.cs
- HttpPostServerProtocol.cs
- AssemblyHelper.cs
- AdRotatorDesigner.cs
- ModelPropertyDescriptor.cs
- InputBindingCollection.cs
- File.cs
- DataContractSerializerFaultFormatter.cs
- DBConcurrencyException.cs
- BindingCollectionElement.cs
- RSAPKCS1SignatureDeformatter.cs
- SimpleLine.cs
- RoutedEvent.cs
- CapabilitiesAssignment.cs
- RuleProcessor.cs
- SHA384.cs
- WorkflowWebService.cs
- KeyedCollection.cs
- WinEventHandler.cs
- PageThemeBuildProvider.cs
- SafeLocalMemHandle.cs
- ConnectionConsumerAttribute.cs
- TagMapCollection.cs
- SafeUserTokenHandle.cs
- DirectionalLight.cs
- XmlWrappingReader.cs
- SoapTypeAttribute.cs
- PropertyPathWorker.cs
- assertwrapper.cs
- ChunkedMemoryStream.cs
- XPathQueryGenerator.cs
- HTMLTagNameToTypeMapper.cs
- HtmlFormParameterWriter.cs
- Profiler.cs
- FlowDocumentScrollViewer.cs
- RecognizedWordUnit.cs
- PublishLicense.cs
- CompilerGeneratedAttribute.cs
- GeneralTransform3DTo2DTo3D.cs
- RawMouseInputReport.cs
- PointAnimationUsingKeyFrames.cs
- FormsAuthenticationUser.cs
- IndexerHelper.cs
- PrimitiveType.cs
- URLMembershipCondition.cs
- BinarySerializer.cs
- Matrix3DStack.cs
- SQLConvert.cs
- ObservableCollection.cs
- WindowsGraphicsWrapper.cs
- CommandDevice.cs
- Header.cs
- ClientUtils.cs
- diagnosticsswitches.cs
- CategoryGridEntry.cs
- UpdateTranslator.cs
- HtmlTitle.cs
- SessionSwitchEventArgs.cs
- XmlSchemaDocumentation.cs
- RoleService.cs
- CharEntityEncoderFallback.cs
- SerializationEventsCache.cs
- SimpleWebHandlerParser.cs
- PolygonHotSpot.cs
- RichTextBox.cs
- Parallel.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TreeNodeSelectionProcessor.cs
- SerializationInfoEnumerator.cs
- ToggleProviderWrapper.cs
- CodeDesigner.cs
- SchemaSetCompiler.cs
- CollectionViewGroup.cs
- Visual3DCollection.cs
- CultureSpecificStringDictionary.cs
- MaterializeFromAtom.cs
- ActivationWorker.cs
- DataServiceConfiguration.cs
- BasicKeyConstraint.cs
- SpecularMaterial.cs
- SmtpFailedRecipientException.cs
- UMPAttributes.cs
- RawStylusSystemGestureInputReport.cs
- TemplateBindingExtensionConverter.cs
- FontDifferentiator.cs
- MarkupExtensionParser.cs
- WebPartManager.cs
- XmlSubtreeReader.cs
- Header.cs
- KeyValueConfigurationElement.cs
- XmlEncodedRawTextWriter.cs