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
- UnauthorizedAccessException.cs
- AutoResizedEvent.cs
- _HTTPDateParse.cs
- XPathChildIterator.cs
- IsolatedStorageFile.cs
- TimelineCollection.cs
- ImageIndexConverter.cs
- Menu.cs
- UIElement3D.cs
- XmlBinaryReader.cs
- DataListItemEventArgs.cs
- RootBuilder.cs
- Monitor.cs
- PagesSection.cs
- VirtualPathProvider.cs
- DBSchemaRow.cs
- QueueProcessor.cs
- ToolStripContainer.cs
- IconHelper.cs
- DesignerCategoryAttribute.cs
- HttpHandlerActionCollection.cs
- PeerValidationBehavior.cs
- Accessors.cs
- JulianCalendar.cs
- CheckoutException.cs
- ResourceWriter.cs
- OpacityConverter.cs
- XPathSingletonIterator.cs
- HttpInputStream.cs
- IsolatedStorage.cs
- HyperLinkStyle.cs
- Module.cs
- Typography.cs
- FieldNameLookup.cs
- WebPartVerbCollection.cs
- MutexSecurity.cs
- Drawing.cs
- XamlTreeBuilderBamlRecordWriter.cs
- MulticastIPAddressInformationCollection.cs
- WebPartUserCapability.cs
- ModelUIElement3D.cs
- StringConverter.cs
- FontSizeConverter.cs
- PointAnimationUsingPath.cs
- PropertyChangeTracker.cs
- SchemaCollectionPreprocessor.cs
- PermissionRequestEvidence.cs
- XmlWriter.cs
- safesecurityhelperavalon.cs
- ErrorFormatterPage.cs
- XmlAggregates.cs
- DebugView.cs
- CommandField.cs
- DataServiceException.cs
- NavigatorOutput.cs
- TextBoxBase.cs
- columnmapfactory.cs
- FixedSOMTextRun.cs
- EdmToObjectNamespaceMap.cs
- MenuItemStyle.cs
- CodeAssignStatement.cs
- BuildResultCache.cs
- TextDecorationLocationValidation.cs
- DrawListViewSubItemEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TransformGroup.cs
- DefaultTraceListener.cs
- DocumentSequenceHighlightLayer.cs
- ValidationErrorInfo.cs
- ListViewTableCell.cs
- RichTextBoxConstants.cs
- ToolStripDropTargetManager.cs
- BrushMappingModeValidation.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MouseWheelEventArgs.cs
- StringDictionaryWithComparer.cs
- MetadataItemCollectionFactory.cs
- SystemGatewayIPAddressInformation.cs
- EventLogPermissionEntry.cs
- Opcode.cs
- AnnotationMap.cs
- XmlSignatureProperties.cs
- ControlHelper.cs
- QilTargetType.cs
- ISessionStateStore.cs
- MemberHolder.cs
- ObjectDataSourceStatusEventArgs.cs
- Vector3DConverter.cs
- PerformanceCounterNameAttribute.cs
- ColorConverter.cs
- SettingsPropertyValueCollection.cs
- WindowsTokenRoleProvider.cs
- EndpointIdentityConverter.cs
- SqlPersonalizationProvider.cs
- NopReturnReader.cs
- DataListItemCollection.cs
- ScriptResourceAttribute.cs
- Triplet.cs
- TreeWalkHelper.cs
- DependencyPropertyValueSerializer.cs