Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....] 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
- Calendar.cs
- ServicePoint.cs
- SqlRowUpdatedEvent.cs
- PartialArray.cs
- AutomationAttributeInfo.cs
- IdleTimeoutMonitor.cs
- ConditionalExpression.cs
- wmiprovider.cs
- InheritanceContextChangedEventManager.cs
- ActiveXSite.cs
- InputScope.cs
- CurrencyManager.cs
- InputMethod.cs
- ManagementEventWatcher.cs
- _FixedSizeReader.cs
- CodeStatement.cs
- Parser.cs
- TrackBar.cs
- IUnknownConstantAttribute.cs
- Root.cs
- CompiledRegexRunner.cs
- FolderLevelBuildProvider.cs
- FormCollection.cs
- OdbcStatementHandle.cs
- ResourceAttributes.cs
- PipeStream.cs
- EnglishPluralizationService.cs
- CompilerTypeWithParams.cs
- MobileUserControl.cs
- DataBinder.cs
- DeviceContext2.cs
- InputLanguageSource.cs
- ConditionalAttribute.cs
- PropVariant.cs
- ToolboxItemAttribute.cs
- ItemsControl.cs
- Subordinate.cs
- ObjectTag.cs
- StreamSecurityUpgradeAcceptor.cs
- DocumentOutline.cs
- DigestTraceRecordHelper.cs
- _NetRes.cs
- AsymmetricKeyExchangeFormatter.cs
- PathSegment.cs
- WebPartConnectionsConnectVerb.cs
- X509RawDataKeyIdentifierClause.cs
- RelationshipEndCollection.cs
- COM2Enum.cs
- UnaryNode.cs
- ScriptResourceAttribute.cs
- SecurityContext.cs
- StateMachine.cs
- ExtensionQuery.cs
- GeometryModel3D.cs
- IteratorFilter.cs
- EventBuilder.cs
- LoginName.cs
- Metafile.cs
- TraceSection.cs
- SoapReflectionImporter.cs
- ScriptMethodAttribute.cs
- InitializerFacet.cs
- SiteMapDataSourceView.cs
- RawAppCommandInputReport.cs
- RefreshPropertiesAttribute.cs
- ForeignKeyConstraint.cs
- TextParagraph.cs
- XmlSchemaValidationException.cs
- UnmanagedMemoryStreamWrapper.cs
- NamespaceList.cs
- ResourcePart.cs
- PrincipalPermission.cs
- _NestedSingleAsyncResult.cs
- MappingSource.cs
- OrderedEnumerableRowCollection.cs
- DocumentProperties.cs
- QueuePathDialog.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ForeignKeyConstraint.cs
- PresentationSource.cs
- PopupControlService.cs
- XmlBinaryReader.cs
- XPathNavigator.cs
- Composition.cs
- CqlLexer.cs
- TextEditorContextMenu.cs
- SymmetricSecurityProtocol.cs
- TripleDESCryptoServiceProvider.cs
- UrlUtility.cs
- MetadataFile.cs
- DataGridRowAutomationPeer.cs
- ErrorEventArgs.cs
- ToolZone.cs
- EntitySqlQueryState.cs
- UrlMappingsModule.cs
- SqlError.cs
- EntityStoreSchemaGenerator.cs
- CodeTypeParameter.cs
- ProcessInputEventArgs.cs
- BitmapCodecInfoInternal.cs