Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientSideQueueItem.cs
- Currency.cs
- DbExpressionRules.cs
- XmlSchemaExporter.cs
- cookie.cs
- DataGridViewToolTip.cs
- InstallerTypeAttribute.cs
- RuntimeConfigLKG.cs
- PrintDialogException.cs
- ReadOnlyCollectionBase.cs
- IntSecurity.cs
- SignatureDescription.cs
- CloudCollection.cs
- IssuedTokenParametersElement.cs
- LassoHelper.cs
- TraceLevelStore.cs
- ToolStripDropDownItem.cs
- ModelProperty.cs
- WriteableOnDemandPackagePart.cs
- ApplicationCommands.cs
- CompilationRelaxations.cs
- StaticSiteMapProvider.cs
- WriteableBitmap.cs
- UserControl.cs
- XmlNodeList.cs
- WmfPlaceableFileHeader.cs
- TypeConvertions.cs
- x509utils.cs
- Latin1Encoding.cs
- counter.cs
- WebPartPersonalization.cs
- AlignmentXValidation.cs
- DesignerTransaction.cs
- RijndaelManaged.cs
- Int32Storage.cs
- TypeBuilderInstantiation.cs
- ServiceEndpointCollection.cs
- EventProvider.cs
- CryptoApi.cs
- CustomCategoryAttribute.cs
- XmlDeclaration.cs
- COM2PropertyDescriptor.cs
- RefreshPropertiesAttribute.cs
- X509Utils.cs
- Preprocessor.cs
- SHA1CryptoServiceProvider.cs
- SynchronizingStream.cs
- CLRBindingWorker.cs
- TextAction.cs
- NavigationProperty.cs
- DateTimeOffset.cs
- SQLBinaryStorage.cs
- RuntimeWrappedException.cs
- StorageRoot.cs
- GeneralTransform3DTo2DTo3D.cs
- DataSetMappper.cs
- DelayedRegex.cs
- StrokeCollectionConverter.cs
- ToolStripSeparatorRenderEventArgs.cs
- TreeNodeBindingCollection.cs
- ToolStripComboBox.cs
- GlobalEventManager.cs
- PenThreadPool.cs
- Clause.cs
- MulticastDelegate.cs
- ProjectedSlot.cs
- DateTimeOffset.cs
- Property.cs
- TreeViewCancelEvent.cs
- TCPClient.cs
- ReadOnlyDictionary.cs
- UserInitiatedNavigationPermission.cs
- EpmAttributeNameBuilder.cs
- LoginName.cs
- ProtocolsConfigurationEntry.cs
- SafeRegistryHandle.cs
- StaticSiteMapProvider.cs
- TrackingQueryElement.cs
- ViewBase.cs
- TextEndOfSegment.cs
- GACMembershipCondition.cs
- DesignerView.cs
- TextPointer.cs
- SignatureHelper.cs
- MarginsConverter.cs
- UnmanagedHandle.cs
- SchemaAttDef.cs
- HeaderCollection.cs
- DateTimeValueSerializerContext.cs
- XmlHelper.cs
- SecurityState.cs
- Bits.cs
- XmlSignificantWhitespace.cs
- OleDbError.cs
- XmlSchemaImport.cs
- WindowsComboBox.cs
- XmlArrayItemAttributes.cs
- ConfigsHelper.cs
- RemotingSurrogateSelector.cs
- RelOps.cs