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
- DBDataPermission.cs
- DBConnectionString.cs
- BaseAsyncResult.cs
- AutoResizedEvent.cs
- _AutoWebProxyScriptEngine.cs
- WindowsNonControl.cs
- AutoResizedEvent.cs
- Condition.cs
- documentsequencetextpointer.cs
- DefaultAuthorizationContext.cs
- DataSpaceManager.cs
- Size.cs
- RadioButtonPopupAdapter.cs
- DiscoveryEndpointElement.cs
- TypeReference.cs
- DataGridViewLinkCell.cs
- NoResizeSelectionBorderGlyph.cs
- DataAdapter.cs
- XmlSchemaParticle.cs
- SafePointer.cs
- XmlDataImplementation.cs
- Events.cs
- ApplicationManager.cs
- ErrorHandler.cs
- DeflateEmulationStream.cs
- Splitter.cs
- TransformGroup.cs
- ToolBar.cs
- SystemShuttingDownException.cs
- SecureConversationSecurityTokenParameters.cs
- LinkUtilities.cs
- SortedList.cs
- Schema.cs
- TableRowCollection.cs
- AsyncStreamReader.cs
- ContractUtils.cs
- ScriptingRoleServiceSection.cs
- ErrorFormatterPage.cs
- PaperSize.cs
- MsmqIntegrationProcessProtocolHandler.cs
- Vector3DValueSerializer.cs
- WindowsClientCredential.cs
- SqlProviderUtilities.cs
- XmlSchemaInfo.cs
- NullableFloatAverageAggregationOperator.cs
- SafeRightsManagementHandle.cs
- FontWeights.cs
- ListenerServiceInstallComponent.cs
- XmlProcessingInstruction.cs
- SByte.cs
- UserControl.cs
- FigureParaClient.cs
- UnsafeNativeMethods.cs
- BoundPropertyEntry.cs
- XmlTextReaderImpl.cs
- Slider.cs
- LeafCellTreeNode.cs
- ToolTip.cs
- ValidationEventArgs.cs
- LinkDescriptor.cs
- MailMessageEventArgs.cs
- ParameterCollection.cs
- Transform3D.cs
- DependencySource.cs
- StringComparer.cs
- RecordManager.cs
- GPRECT.cs
- NetworkStream.cs
- ToolZoneDesigner.cs
- PropertyValueChangedEvent.cs
- RenderingEventArgs.cs
- JobInputBins.cs
- CompilerScopeManager.cs
- SmiEventSink_DeferedProcessing.cs
- PresentationAppDomainManager.cs
- CriticalFinalizerObject.cs
- RecognitionResult.cs
- PrefixHandle.cs
- ConfigLoader.cs
- ParseElementCollection.cs
- ObjectConverter.cs
- CrossSiteScriptingValidation.cs
- StrokeCollection2.cs
- XhtmlConformanceSection.cs
- PropertyAccessVisitor.cs
- DataServiceClientException.cs
- Root.cs
- SqlExpander.cs
- TextViewElement.cs
- DbDeleteCommandTree.cs
- CheckPair.cs
- DesignerLinkAdapter.cs
- CatalogPartChrome.cs
- MaterialGroup.cs
- sqlpipe.cs
- XmlSchemaCompilationSettings.cs
- Privilege.cs
- BufferedStream.cs
- MediaTimeline.cs
- PathFigureCollection.cs