Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / SessionEndingCancelEventArgs.cs / 1305600 / 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
- LogSwitch.cs
- WebPartTransformerAttribute.cs
- CurrentChangedEventManager.cs
- DiscoveryDocumentSearchPattern.cs
- ValueTypeFixupInfo.cs
- ExpressionVisitor.cs
- XmlSchemaIdentityConstraint.cs
- PowerModeChangedEventArgs.cs
- SessionEndingCancelEventArgs.cs
- ConfigurationHandlersInstallComponent.cs
- OrderedHashRepartitionStream.cs
- SqlExpander.cs
- _UriSyntax.cs
- CodeAssignStatement.cs
- SharedStatics.cs
- BindingValueChangedEventArgs.cs
- ToolboxCategory.cs
- StrongNameKeyPair.cs
- ColumnHeader.cs
- TextRunCache.cs
- StringWriter.cs
- DataGridColumnCollection.cs
- ObjectItemCollection.cs
- RegexReplacement.cs
- ReadOnlyNameValueCollection.cs
- ProtectedProviderSettings.cs
- HebrewCalendar.cs
- ModelItem.cs
- MexNamedPipeBindingElement.cs
- DesigntimeLicenseContextSerializer.cs
- AnimationClock.cs
- SecurityException.cs
- MailSettingsSection.cs
- Font.cs
- DescendantQuery.cs
- SoapServerProtocol.cs
- SizeValueSerializer.cs
- EntityContainer.cs
- ListItem.cs
- TranslateTransform.cs
- COM2PropertyBuilderUITypeEditor.cs
- KeyGesture.cs
- ColumnPropertiesGroup.cs
- PageCatalogPart.cs
- util.cs
- ResourceIDHelper.cs
- DependencyPropertyConverter.cs
- NativeMethods.cs
- Constants.cs
- ThreadAbortException.cs
- OdbcConnectionHandle.cs
- EventProviderClassic.cs
- CompilerScope.cs
- Section.cs
- WebPartDisplayMode.cs
- ConfigurationPermission.cs
- ReadOnlyDataSource.cs
- Scanner.cs
- Aggregates.cs
- TextAction.cs
- Helpers.cs
- Visitors.cs
- Terminate.cs
- ColorConvertedBitmapExtension.cs
- ActiveXHost.cs
- MonikerBuilder.cs
- NavigationFailedEventArgs.cs
- RepeaterDesigner.cs
- FileDetails.cs
- EditorZone.cs
- ServiceAuthorizationElement.cs
- bidPrivateBase.cs
- MethodToken.cs
- ObjectConverter.cs
- CharacterString.cs
- SecurityTokenAuthenticator.cs
- Environment.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- JournalNavigationScope.cs
- AdPostCacheSubstitution.cs
- FileVersion.cs
- RelationshipEnd.cs
- HttpRequestCacheValidator.cs
- SessionStateContainer.cs
- ValidatorCollection.cs
- ToolStripProgressBar.cs
- ResXBuildProvider.cs
- PropVariant.cs
- WebPartDeleteVerb.cs
- printdlgexmarshaler.cs
- EncryptedData.cs
- IDispatchConstantAttribute.cs
- UriTemplateQueryValue.cs
- RemotingSurrogateSelector.cs
- DesignerCategoryAttribute.cs
- XamlDebuggerXmlReader.cs
- NotFiniteNumberException.cs
- GridViewColumnCollection.cs
- SocketCache.cs
- OutputCacheProfile.cs