Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / SessionEndingCancelEventArgs.cs / 1305600 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StyleSheetRefUrlEditor.cs
- SystemInfo.cs
- CroppedBitmap.cs
- ClientTargetSection.cs
- OrderedDictionaryStateHelper.cs
- DesignerActionKeyboardBehavior.cs
- XmlWellformedWriterHelpers.cs
- PeerApplicationLaunchInfo.cs
- MetadataCache.cs
- ObjectQueryState.cs
- HighContrastHelper.cs
- Trustee.cs
- SystemWebExtensionsSectionGroup.cs
- CodeRegionDirective.cs
- DesignerVerb.cs
- ScriptingProfileServiceSection.cs
- PropertyGridCommands.cs
- SBCSCodePageEncoding.cs
- CurrencyManager.cs
- DecryptRequest.cs
- WSSecurityXXX2005.cs
- SqlDataSourceView.cs
- WebBrowserDocumentCompletedEventHandler.cs
- BrowserTree.cs
- AbstractExpressions.cs
- ZeroOpNode.cs
- PropertyGridEditorPart.cs
- Calendar.cs
- FrameworkContextData.cs
- RightNameExpirationInfoPair.cs
- SubpageParaClient.cs
- CompleteWizardStep.cs
- ResourceDictionaryCollection.cs
- FormatException.cs
- Stroke2.cs
- StreamingContext.cs
- CheckBoxPopupAdapter.cs
- ProfileGroupSettings.cs
- WebPartTracker.cs
- CollectionViewProxy.cs
- AnnotationService.cs
- LambdaCompiler.Lambda.cs
- CipherData.cs
- ErrorHandler.cs
- XamlSerializer.cs
- MinimizableAttributeTypeConverter.cs
- EntityDataSourceState.cs
- basenumberconverter.cs
- ExpressionBindingCollection.cs
- ComboBoxItem.cs
- LinqDataSourceContextEventArgs.cs
- OutputWindow.cs
- DefaultValidator.cs
- EntityDesignerUtils.cs
- ListBox.cs
- Item.cs
- InkCanvasInnerCanvas.cs
- QueuePropertyVariants.cs
- Maps.cs
- SelectedDatesCollection.cs
- RegexRunner.cs
- LazyTextWriterCreator.cs
- MarkupWriter.cs
- EventDriven.cs
- EventSourceCreationData.cs
- ResourceWriter.cs
- AccessText.cs
- SecurityContext.cs
- WorkflowView.cs
- WindowsListViewSubItem.cs
- CanonicalFontFamilyReference.cs
- TrackingProfileSerializer.cs
- StringPropertyBuilder.cs
- AxHost.cs
- APCustomTypeDescriptor.cs
- PropertyDescriptorCollection.cs
- CodeAttachEventStatement.cs
- TextContainer.cs
- RegistryKey.cs
- DataServiceQueryProvider.cs
- FreezableOperations.cs
- FixedFlowMap.cs
- StylusPointProperty.cs
- BuildTopDownAttribute.cs
- InternalConfigEventArgs.cs
- FlowNode.cs
- ReverseInheritProperty.cs
- SessionEndingCancelEventArgs.cs
- xml.cs
- WebGetAttribute.cs
- Marshal.cs
- AudioException.cs
- UIElement3D.cs
- NativeMethods.cs
- log.cs
- ProtocolElement.cs
- ValidatorCollection.cs
- InvokeProviderWrapper.cs
- ObjectDisposedException.cs
- Transform3DGroup.cs