Code:
/ 4.0 / 4.0 / 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. //-------------------------------------------------------------------------------------------------- // 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
- DeleteIndexBinder.cs
- QilFunction.cs
- PackagePart.cs
- RectangleConverter.cs
- AutomationEventArgs.cs
- Assembly.cs
- ExpandSegment.cs
- BoundingRectTracker.cs
- ButtonField.cs
- EmissiveMaterial.cs
- _IPv4Address.cs
- Part.cs
- SerializationHelper.cs
- RemotingConfigParser.cs
- CodeDomComponentSerializationService.cs
- PageParser.cs
- WeakRefEnumerator.cs
- CompositeDataBoundControl.cs
- WindowsListViewItem.cs
- ImageCollectionCodeDomSerializer.cs
- RequestBringIntoViewEventArgs.cs
- Stopwatch.cs
- SchemaCollectionPreprocessor.cs
- StrokeCollectionDefaultValueFactory.cs
- WebPartHeaderCloseVerb.cs
- Filter.cs
- DecoderBestFitFallback.cs
- LicenseContext.cs
- NameValueCollection.cs
- InputLanguageManager.cs
- AdornerLayer.cs
- ElementAtQueryOperator.cs
- BufferedWebEventProvider.cs
- HashRepartitionEnumerator.cs
- Triangle.cs
- CustomError.cs
- Viewport3DVisual.cs
- SspiNegotiationTokenProviderState.cs
- FixedSchema.cs
- OutputScopeManager.cs
- IriParsingElement.cs
- InternalBufferOverflowException.cs
- StringArrayEditor.cs
- HashSetEqualityComparer.cs
- Select.cs
- SafeCertificateStore.cs
- EntityDataSourceContainerNameConverter.cs
- _UriSyntax.cs
- RootBuilder.cs
- PerspectiveCamera.cs
- SmiEventStream.cs
- TextViewSelectionProcessor.cs
- PersistChildrenAttribute.cs
- StringHandle.cs
- DecimalConstantAttribute.cs
- ListMarkerLine.cs
- BreakRecordTable.cs
- NodeInfo.cs
- Normalization.cs
- ScrollBarRenderer.cs
- UpdateRecord.cs
- HttpResponse.cs
- XmlDocument.cs
- RegexRunnerFactory.cs
- StrongNameUtility.cs
- AppearanceEditorPart.cs
- BypassElementCollection.cs
- VectorAnimation.cs
- DesignSurfaceCollection.cs
- RowBinding.cs
- ContextMenuService.cs
- BrowserCapabilitiesCodeGenerator.cs
- FormsAuthenticationUser.cs
- ListBindingConverter.cs
- LocalizableAttribute.cs
- PageCatalogPartDesigner.cs
- ToolStripScrollButton.cs
- RenderOptions.cs
- brushes.cs
- ActivitiesCollection.cs
- SiteMapNodeCollection.cs
- DBConcurrencyException.cs
- ProtectedConfiguration.cs
- DelegatingHeader.cs
- TextTreeTextElementNode.cs
- ControlBuilderAttribute.cs
- FtpCachePolicyElement.cs
- SoapSchemaImporter.cs
- Transform.cs
- ConfigurationElementProperty.cs
- EntityDataSourceContainerNameConverter.cs
- SafePEFileHandle.cs
- FilterException.cs
- XmlDataSource.cs
- BooleanToVisibilityConverter.cs
- SvcMapFileSerializer.cs
- adornercollection.cs
- CodeMemberEvent.cs
- ScalarType.cs
- StringConverter.cs