Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HttpResponse.cs
- SmtpNetworkElement.cs
- CurrentChangingEventArgs.cs
- InputLanguageEventArgs.cs
- GestureRecognizer.cs
- DriveInfo.cs
- XmlSerializableReader.cs
- _DigestClient.cs
- AddInAttribute.cs
- NoneExcludedImageIndexConverter.cs
- HostedImpersonationContext.cs
- CancelRequestedRecord.cs
- ReachDocumentReferenceSerializerAsync.cs
- pingexception.cs
- DrawingContext.cs
- ConfigXmlElement.cs
- LogWriteRestartAreaState.cs
- ValuePattern.cs
- VSWCFServiceContractGenerator.cs
- assemblycache.cs
- XmlExceptionHelper.cs
- BitmapFrameEncode.cs
- ViewManager.cs
- CaseInsensitiveComparer.cs
- Ref.cs
- QueueSurrogate.cs
- KnownTypesProvider.cs
- Lease.cs
- ComponentChangingEvent.cs
- ComplexType.cs
- TreeIterators.cs
- RectAnimation.cs
- OAVariantLib.cs
- ServiceAuthorizationElement.cs
- OperatingSystem.cs
- Parser.cs
- CompositeDispatchFormatter.cs
- TextComposition.cs
- URIFormatException.cs
- MemberDescriptor.cs
- IdentityNotMappedException.cs
- ChannelBinding.cs
- XPathChildIterator.cs
- NotSupportedException.cs
- TrackingProvider.cs
- SchemaInfo.cs
- WebPartManager.cs
- HuffModule.cs
- UnionExpr.cs
- DocumentReference.cs
- DockProviderWrapper.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- SchemaImporter.cs
- TextDecorationUnitValidation.cs
- AppDomainEvidenceFactory.cs
- DbProviderFactories.cs
- WebWorkflowRole.cs
- CodeDomLocalizationProvider.cs
- DataGridViewCellMouseEventArgs.cs
- ParentUndoUnit.cs
- TransformerConfigurationWizardBase.cs
- SelectionProviderWrapper.cs
- DeferredRunTextReference.cs
- PowerStatus.cs
- CookielessHelper.cs
- SiteMapDataSourceView.cs
- PlaceHolder.cs
- TextParagraphProperties.cs
- BitmapEffectRenderDataResource.cs
- TreeWalkHelper.cs
- TransactionalPackage.cs
- Point3DValueSerializer.cs
- RelationshipNavigation.cs
- cryptoapiTransform.cs
- UnsafeNativeMethods.cs
- AutomationPatternInfo.cs
- TcpAppDomainProtocolHandler.cs
- nulltextcontainer.cs
- OperationFormatStyle.cs
- WebScriptEnablingBehavior.cs
- OdbcConnectionStringbuilder.cs
- HtmlEmptyTagControlBuilder.cs
- CapabilitiesUse.cs
- ToolStripSystemRenderer.cs
- KeyGesture.cs
- UrlPath.cs
- XmlDataCollection.cs
- ReachDocumentReferenceCollectionSerializer.cs
- DataRowCollection.cs
- SmtpTransport.cs
- TextPattern.cs
- HttpWebRequestElement.cs
- XmlSchemaSimpleContentRestriction.cs
- SrgsGrammar.cs
- DynamicExpression.cs
- TabletDeviceInfo.cs
- AppliedDeviceFiltersEditor.cs
- FileRecordSequence.cs
- PageContentCollection.cs
- Selector.cs