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
- EditingCommands.cs
- BasicViewGenerator.cs
- SqlClientFactory.cs
- GCHandleCookieTable.cs
- ReflectTypeDescriptionProvider.cs
- _IPv6Address.cs
- Size3D.cs
- _ProxyChain.cs
- glyphs.cs
- ReadOnlyTernaryTree.cs
- ControlsConfig.cs
- PageHandlerFactory.cs
- InternalUserCancelledException.cs
- CommandConverter.cs
- UIAgentMonitorHandle.cs
- SqlUtils.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Point4D.cs
- SafeRightsManagementHandle.cs
- PropertyConverter.cs
- HashCodeCombiner.cs
- HtmlElementEventArgs.cs
- ProxyWebPartManagerDesigner.cs
- CompilerError.cs
- QueryStack.cs
- CqlWriter.cs
- TaskFileService.cs
- TaiwanCalendar.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ConnectionPoint.cs
- Soap12ProtocolImporter.cs
- SqlAggregateChecker.cs
- RoutedEventHandlerInfo.cs
- FixedDocumentPaginator.cs
- TextContainerChangedEventArgs.cs
- XmlDocument.cs
- BoundColumn.cs
- ContextMenuAutomationPeer.cs
- WebPart.cs
- EncoderExceptionFallback.cs
- WindowsAltTab.cs
- filewebresponse.cs
- ItemCheckEvent.cs
- StylusPlugInCollection.cs
- ExpressionBindingCollection.cs
- PointHitTestParameters.cs
- AccessorTable.cs
- DbModificationClause.cs
- StructuralType.cs
- GridViewColumn.cs
- JavaScriptSerializer.cs
- FontWeightConverter.cs
- MinimizableAttributeTypeConverter.cs
- XmlHierarchicalDataSourceView.cs
- PropertyPushdownHelper.cs
- NetworkAddressChange.cs
- XsdDuration.cs
- QilCloneVisitor.cs
- ExpressionHelper.cs
- XmlIlTypeHelper.cs
- AbstractExpressions.cs
- FrameworkElementAutomationPeer.cs
- ParameterRefs.cs
- DefaultAsyncDataDispatcher.cs
- UnmanagedHandle.cs
- DrawingAttributeSerializer.cs
- LocalizationComments.cs
- TriggerBase.cs
- FormViewUpdatedEventArgs.cs
- EntityConnectionStringBuilder.cs
- XmlChildEnumerator.cs
- SqlCacheDependency.cs
- BehaviorEditorPart.cs
- ToolStripMenuItem.cs
- ControlParameter.cs
- ParenthesizePropertyNameAttribute.cs
- Attributes.cs
- Win32NamedPipes.cs
- ProfileModule.cs
- ExceptionRoutedEventArgs.cs
- XPathAxisIterator.cs
- MarkupCompilePass2.cs
- ThicknessConverter.cs
- ViewGenerator.cs
- XmlSchemaInfo.cs
- DesigntimeLicenseContext.cs
- SqlXmlStorage.cs
- ArgumentException.cs
- Calendar.cs
- IdentifierCollection.cs
- StorageEndPropertyMapping.cs
- CallbackDebugElement.cs
- SqlDataReaderSmi.cs
- GeneralTransformGroup.cs
- NavigationEventArgs.cs
- ExpandCollapseProviderWrapper.cs
- TreeBuilderBamlTranslator.cs
- LockCookie.cs
- OrderedDictionaryStateHelper.cs
- CompiledELinqQueryState.cs