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
- MouseWheelEventArgs.cs
- FillRuleValidation.cs
- XPathNodeHelper.cs
- WebConfigurationHostFileChange.cs
- ArraySet.cs
- WorkflowMarkupSerializationException.cs
- Constraint.cs
- TrackingProfileManager.cs
- ServiceElementCollection.cs
- WebPartUtil.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TokenizerHelper.cs
- PreProcessor.cs
- DocumentPageView.cs
- PropertyEmitterBase.cs
- Point3DAnimationBase.cs
- DebuggerService.cs
- SqlDataSourceQueryEditorForm.cs
- CursorInteropHelper.cs
- LateBoundChannelParameterCollection.cs
- Win32SafeHandles.cs
- EdgeProfileValidation.cs
- InstalledFontCollection.cs
- CommandCollectionEditor.cs
- XmlSortKeyAccumulator.cs
- SimpleTextLine.cs
- FontCacheUtil.cs
- PersonalizableTypeEntry.cs
- ReaderWriterLock.cs
- CodeCompiler.cs
- QuaternionAnimationBase.cs
- ScriptManager.cs
- mda.cs
- Helper.cs
- StickyNote.cs
- ConnectionStringsSection.cs
- VirtualDirectoryMappingCollection.cs
- BindingBase.cs
- OdbcConnectionString.cs
- CrossSiteScriptingValidation.cs
- CurrentChangingEventManager.cs
- TreeNodeCollectionEditor.cs
- CodeObject.cs
- LineUtil.cs
- BitmapEffectInput.cs
- ConfigXmlCDataSection.cs
- OutgoingWebResponseContext.cs
- ContentValidator.cs
- DataControlFieldsEditor.cs
- WebPartConnection.cs
- Translator.cs
- EntityViewGenerationConstants.cs
- DataGridViewRowStateChangedEventArgs.cs
- ResourceCategoryAttribute.cs
- WorkflowServiceInstance.cs
- RadioButtonRenderer.cs
- BeginEvent.cs
- GPPOINTF.cs
- ToggleProviderWrapper.cs
- BrowserCapabilitiesFactory.cs
- TypefaceMap.cs
- OlePropertyStructs.cs
- SqlRewriteScalarSubqueries.cs
- CompilerErrorCollection.cs
- SortedDictionary.cs
- BmpBitmapEncoder.cs
- CheckPair.cs
- HashHelper.cs
- LineGeometry.cs
- ProfilePropertySettings.cs
- AttributeCollection.cs
- InheritedPropertyChangedEventArgs.cs
- SqlBooleanMismatchVisitor.cs
- ResourcePool.cs
- ConfigurationManagerInternalFactory.cs
- AddingNewEventArgs.cs
- XsltException.cs
- Conditional.cs
- ResourcePool.cs
- FixedMaxHeap.cs
- FilterableAttribute.cs
- DataChangedEventManager.cs
- FaultBookmark.cs
- _SslSessionsCache.cs
- FixedDocumentPaginator.cs
- EventHandlerList.cs
- TextBoxRenderer.cs
- UInt16.cs
- RouteData.cs
- WindowHelperService.cs
- DataGridBoolColumn.cs
- ConstraintStruct.cs
- IgnoreDeviceFilterElementCollection.cs
- BackgroundFormatInfo.cs
- COM2AboutBoxPropertyDescriptor.cs
- ListManagerBindingsCollection.cs
- FileChangesMonitor.cs
- Misc.cs
- WebPartDisplayModeEventArgs.cs
- PermissionSet.cs