Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StateManager.cs
- InternalCache.cs
- CDSCollectionETWBCLProvider.cs
- FigureParaClient.cs
- WindowsScrollBarBits.cs
- OrderedEnumerableRowCollection.cs
- EnglishPluralizationService.cs
- SessionSwitchEventArgs.cs
- Bezier.cs
- Automation.cs
- ServiceModelConfigurationSection.cs
- ArrayMergeHelper.cs
- ExtenderProvidedPropertyAttribute.cs
- ToolStripMenuItemDesigner.cs
- FixedSOMGroup.cs
- bindurihelper.cs
- CustomWebEventKey.cs
- HostedElements.cs
- SoapExtensionReflector.cs
- QilScopedVisitor.cs
- Single.cs
- GroupItemAutomationPeer.cs
- CodeDefaultValueExpression.cs
- SchemaElementDecl.cs
- HTTPNotFoundHandler.cs
- FileClassifier.cs
- PrincipalPermission.cs
- URLString.cs
- ListViewItemCollectionEditor.cs
- HttpListenerContext.cs
- NullableDoubleAverageAggregationOperator.cs
- CellTreeNodeVisitors.cs
- InfoCardKeyedHashAlgorithm.cs
- Model3D.cs
- RoleManagerModule.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ErrorHandler.cs
- FontStyle.cs
- IProvider.cs
- InteropBitmapSource.cs
- WindowsListViewGroupHelper.cs
- CodeDomConfigurationHandler.cs
- DataGridPageChangedEventArgs.cs
- XmlBinaryReaderSession.cs
- SpeakCompletedEventArgs.cs
- HostingPreferredMapPath.cs
- OdbcUtils.cs
- ContainerUtilities.cs
- ListViewGroupItemCollection.cs
- DataControlLinkButton.cs
- MgmtConfigurationRecord.cs
- Encoding.cs
- BidPrivateBase.cs
- SelectionHighlightInfo.cs
- HttpCacheVaryByContentEncodings.cs
- GZipStream.cs
- ManagementScope.cs
- EmptyImpersonationContext.cs
- FlowDocumentScrollViewer.cs
- BamlRecordReader.cs
- ProxyWebPartConnectionCollection.cs
- SqlBooleanMismatchVisitor.cs
- BoundField.cs
- TextDecoration.cs
- TabControlDesigner.cs
- ParserExtension.cs
- DefinitionUpdate.cs
- FileDialog.cs
- NavigationExpr.cs
- Transform3DGroup.cs
- PropertyValueUIItem.cs
- PageStatePersister.cs
- Opcode.cs
- EntityStoreSchemaFilterEntry.cs
- CommentGlyph.cs
- BindableTemplateBuilder.cs
- Durable.cs
- BookmarkManager.cs
- CommandBinding.cs
- TdsParserSessionPool.cs
- Attributes.cs
- PointLight.cs
- PingReply.cs
- GiveFeedbackEvent.cs
- LinearKeyFrames.cs
- NamespaceDecl.cs
- EventArgs.cs
- IImplicitResourceProvider.cs
- DesignerInterfaces.cs
- BufferModesCollection.cs
- HandlerBase.cs
- PeerNodeAddress.cs
- XmlRawWriterWrapper.cs
- ZoomPercentageConverter.cs
- DbXmlEnabledProviderManifest.cs
- InputLanguageManager.cs
- RegexFCD.cs
- QuaternionRotation3D.cs
- CatalogZoneBase.cs
- MetaModel.cs