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
- HitTestResult.cs
- EndpointIdentityExtension.cs
- UnauthorizedWebPart.cs
- SchemaNames.cs
- ComboBoxAutomationPeer.cs
- SmtpFailedRecipientsException.cs
- DocumentScope.cs
- AssemblyResourceLoader.cs
- COM2FontConverter.cs
- SqlDataSourceConfigureSelectPanel.cs
- Debug.cs
- Ref.cs
- AssemblyInfo.cs
- TransformPatternIdentifiers.cs
- AxWrapperGen.cs
- LoadItemsEventArgs.cs
- VisualStates.cs
- FixedTextContainer.cs
- ToolStripDropDownClosedEventArgs.cs
- SymbolPair.cs
- TextAutomationPeer.cs
- RegexTree.cs
- ObjectDataSourceStatusEventArgs.cs
- ExpressionEditorAttribute.cs
- UIElementIsland.cs
- CodePageUtils.cs
- XPathAxisIterator.cs
- DeflateEmulationStream.cs
- NameSpaceExtractor.cs
- TextAdaptor.cs
- ChannelServices.cs
- ItemsControlAutomationPeer.cs
- BaseValidatorDesigner.cs
- InternalControlCollection.cs
- SupportsEventValidationAttribute.cs
- FixedSOMTable.cs
- RectAnimationBase.cs
- EntityAdapter.cs
- GridViewEditEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- XXXInfos.cs
- DocobjHost.cs
- CodeConditionStatement.cs
- SystemMulticastIPAddressInformation.cs
- DataGridViewLinkCell.cs
- DocumentManager.cs
- MouseCaptureWithinProperty.cs
- KeyMatchBuilder.cs
- ExtensionWindow.cs
- SwitchElementsCollection.cs
- CommandID.cs
- ProofTokenCryptoHandle.cs
- LineGeometry.cs
- GeneralTransform3DTo2DTo3D.cs
- RectConverter.cs
- DataGridRowHeader.cs
- RankException.cs
- XsltOutput.cs
- HttpCachePolicy.cs
- UpdateProgress.cs
- CompilationRelaxations.cs
- FunctionOverloadResolver.cs
- ExpressionLexer.cs
- WindowsListViewItem.cs
- ByteAnimationUsingKeyFrames.cs
- FlatButtonAppearance.cs
- XmlSchemaType.cs
- BevelBitmapEffect.cs
- KeyedPriorityQueue.cs
- PiiTraceSource.cs
- DiscoveryServerProtocol.cs
- Currency.cs
- Thickness.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- CodeCommentStatementCollection.cs
- BrowserCapabilitiesFactory.cs
- DecimalFormatter.cs
- WeakReference.cs
- OrderPreservingPipeliningSpoolingTask.cs
- XPathException.cs
- CollaborationHelperFunctions.cs
- TemplateGroupCollection.cs
- DocumentScope.cs
- TransformerInfoCollection.cs
- HtmlElementErrorEventArgs.cs
- ConditionalAttribute.cs
- SharedPersonalizationStateInfo.cs
- GeneratedContractType.cs
- columnmapkeybuilder.cs
- EventLogSession.cs
- PropertyGrid.cs
- SupportingTokenListenerFactory.cs
- DateBoldEvent.cs
- InputManager.cs
- TextSimpleMarkerProperties.cs
- DispatchWrapper.cs
- TargetConverter.cs
- BindingCollectionElement.cs
- SafeFileMapViewHandle.cs
- HashCodeCombiner.cs