Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BorderGapMaskConverter.cs
- WindowsNonControl.cs
- AsyncSerializedWorker.cs
- ParseChildrenAsPropertiesAttribute.cs
- PermissionAttributes.cs
- StringPropertyBuilder.cs
- SourceLineInfo.cs
- HttpListenerRequest.cs
- ParserHooks.cs
- HttpModuleActionCollection.cs
- OuterGlowBitmapEffect.cs
- Vector3dCollection.cs
- TimeSpan.cs
- TreeView.cs
- SqlGenerator.cs
- SystemIcons.cs
- PageVisual.cs
- CompilerLocalReference.cs
- AccessDataSourceView.cs
- QuaternionAnimation.cs
- DataStreamFromComStream.cs
- IndexOutOfRangeException.cs
- SafeFileMappingHandle.cs
- SafeHandles.cs
- ForEachAction.cs
- SelectionWordBreaker.cs
- UserPreferenceChangedEventArgs.cs
- CorruptStoreException.cs
- ListSourceHelper.cs
- SqlDataSourceStatusEventArgs.cs
- XmlSchemaSimpleContent.cs
- DesignerTransactionCloseEvent.cs
- ValueChangedEventManager.cs
- DetailsViewPagerRow.cs
- CategoryNameCollection.cs
- ControlIdConverter.cs
- OpCodes.cs
- MailWriter.cs
- HGlobalSafeHandle.cs
- SchemaTypeEmitter.cs
- Menu.cs
- Button.cs
- SignedPkcs7.cs
- ExpressionList.cs
- TextBoxBase.cs
- CDSsyncETWBCLProvider.cs
- TextProviderWrapper.cs
- DetailsViewUpdateEventArgs.cs
- HMACSHA512.cs
- XmlWriterSettings.cs
- AssociatedControlConverter.cs
- MultiTrigger.cs
- DesignerWidgets.cs
- ToolStripOverflow.cs
- WindowsFormsSectionHandler.cs
- WriteTimeStream.cs
- AutomationTextAttribute.cs
- FileLogRecord.cs
- xmlfixedPageInfo.cs
- MasterPageParser.cs
- SapiInterop.cs
- Parser.cs
- ObjectStateEntryDbDataRecord.cs
- SortDescriptionCollection.cs
- RootBuilder.cs
- ProtectedConfiguration.cs
- CachedRequestParams.cs
- CodeMethodInvokeExpression.cs
- TransportSecurityProtocol.cs
- ResourceContainer.cs
- WebBrowserNavigatedEventHandler.cs
- CodeStatementCollection.cs
- PerspectiveCamera.cs
- DebugView.cs
- Sorting.cs
- TreeBuilderXamlTranslator.cs
- DocumentAutomationPeer.cs
- ButtonFlatAdapter.cs
- VBIdentifierDesigner.xaml.cs
- FixedPageAutomationPeer.cs
- BindingNavigator.cs
- DBDataPermission.cs
- HtmlEncodedRawTextWriter.cs
- PerspectiveCamera.cs
- RuntimeComponentFilter.cs
- TextBoxRenderer.cs
- EasingKeyFrames.cs
- GeometryHitTestResult.cs
- TcpConnectionPool.cs
- DesignerDataSchemaClass.cs
- CannotUnloadAppDomainException.cs
- _ListenerRequestStream.cs
- Rotation3DAnimationBase.cs
- ImageMetadata.cs
- TableProviderWrapper.cs
- GregorianCalendarHelper.cs
- CodeExpressionStatement.cs
- XomlCompilerError.cs
- Triangle.cs
- ApplicationContext.cs