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
- OdbcConnectionPoolProviderInfo.cs
- regiisutil.cs
- ToolStripContentPanel.cs
- ViewValidator.cs
- ListChangedEventArgs.cs
- XmlCodeExporter.cs
- RuleSettingsCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- HttpWriter.cs
- ClientFormsIdentity.cs
- Policy.cs
- WindowsGraphicsWrapper.cs
- Helpers.cs
- ProtocolElement.cs
- TextWriterTraceListener.cs
- PropertyDescriptors.cs
- Timer.cs
- EntityWithChangeTrackerStrategy.cs
- ViewStateModeByIdAttribute.cs
- Grammar.cs
- EventLogEntryCollection.cs
- UserMapPath.cs
- Empty.cs
- StringFormat.cs
- HebrewNumber.cs
- XmlDesignerDataSourceView.cs
- DataListCommandEventArgs.cs
- InputLanguageEventArgs.cs
- DynamicPropertyReader.cs
- GeneralTransform3DGroup.cs
- GatewayDefinition.cs
- X509Logo.cs
- BindingList.cs
- ButtonAutomationPeer.cs
- LogicalMethodInfo.cs
- Panel.cs
- BookmarkEventArgs.cs
- DataGridColumnHeaderAutomationPeer.cs
- CaseInsensitiveComparer.cs
- UnknownWrapper.cs
- MetadataPropertyCollection.cs
- BinaryMethodMessage.cs
- Serializer.cs
- EmptyEnumerator.cs
- BaseAutoFormat.cs
- CodeCompiler.cs
- Style.cs
- PersonalizationStateInfoCollection.cs
- CompilationLock.cs
- Region.cs
- DomNameTable.cs
- URLAttribute.cs
- WebPartPersonalization.cs
- SafeRightsManagementPubHandle.cs
- DataGridViewRowStateChangedEventArgs.cs
- ValidatingReaderNodeData.cs
- XmlUtil.cs
- HttpCacheVary.cs
- DataGridItem.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- FrameworkContentElement.cs
- Type.cs
- MatrixAnimationUsingPath.cs
- ByteAnimation.cs
- WindowsClaimSet.cs
- XmlSchemaGroup.cs
- HealthMonitoringSection.cs
- ProjectionCamera.cs
- RuleSetBrowserDialog.cs
- infer.cs
- XPathAxisIterator.cs
- Rect.cs
- HttpResponseWrapper.cs
- RenderOptions.cs
- CodeIdentifiers.cs
- XmlRootAttribute.cs
- SqlProfileProvider.cs
- SelectedPathEditor.cs
- RadioButtonAutomationPeer.cs
- CodeMemberField.cs
- SQLBoolean.cs
- AspNetSynchronizationContext.cs
- FormsAuthenticationCredentials.cs
- PinnedBufferMemoryStream.cs
- AuthenticateEventArgs.cs
- CacheAxisQuery.cs
- CompositeActivityMarkupSerializer.cs
- WFItemsToSpacerVisibility.cs
- AlignmentYValidation.cs
- UdpSocketReceiveManager.cs
- WebUtil.cs
- ScrollBar.cs
- TransactionChannelFactory.cs
- DesignerHelpers.cs
- ListViewGroupConverter.cs
- XmlDataCollection.cs
- NumberAction.cs
- CodeEntryPointMethod.cs
- ObjectDisposedException.cs