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
- CanonicalizationDriver.cs
- ToolboxItemFilterAttribute.cs
- ColumnHeader.cs
- RouteItem.cs
- ProvidePropertyAttribute.cs
- AudioStateChangedEventArgs.cs
- RoleManagerModule.cs
- HttpListener.cs
- CanonicalFormWriter.cs
- WebPartConnectionCollection.cs
- XmlILAnnotation.cs
- ListItemCollection.cs
- CachingParameterInspector.cs
- BinHexEncoding.cs
- ComEventsHelper.cs
- ColorInterpolationModeValidation.cs
- DataErrorValidationRule.cs
- FacetChecker.cs
- messageonlyhwndwrapper.cs
- ITextView.cs
- CreateParams.cs
- TemplateXamlParser.cs
- TemplateColumn.cs
- TimersDescriptionAttribute.cs
- WebPartEventArgs.cs
- XMLUtil.cs
- OdbcFactory.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- WebZone.cs
- ServiceSettingsResponseInfo.cs
- log.cs
- SpinWait.cs
- SapiInterop.cs
- ModelTreeEnumerator.cs
- DataGridViewAdvancedBorderStyle.cs
- PrimarySelectionGlyph.cs
- DataGridViewCellFormattingEventArgs.cs
- NameNode.cs
- TdsParameterSetter.cs
- EventTrigger.cs
- Logging.cs
- SspiWrapper.cs
- FontClient.cs
- SettingsSection.cs
- EditorZoneDesigner.cs
- HttpFileCollection.cs
- SvcMapFile.cs
- CodeDelegateCreateExpression.cs
- ObjectDataSourceWizardForm.cs
- ListDictionaryInternal.cs
- ServiceRouteHandler.cs
- StateMachineWorkflowDesigner.cs
- JavaScriptSerializer.cs
- ConnectorMovedEventArgs.cs
- Privilege.cs
- ScriptResourceInfo.cs
- IdentitySection.cs
- DefaultAssemblyResolver.cs
- NumericUpDownAcceleration.cs
- FileRecordSequence.cs
- DiagnosticStrings.cs
- CapabilitiesAssignment.cs
- Control.cs
- LocalServiceSecuritySettings.cs
- FontFamily.cs
- HeaderedContentControl.cs
- SizeF.cs
- ObjectListFieldsPage.cs
- EntityConnectionStringBuilderItem.cs
- ToolBar.cs
- UnaryNode.cs
- PingOptions.cs
- ReliabilityContractAttribute.cs
- ProjectionCamera.cs
- Stroke2.cs
- WeakReferenceEnumerator.cs
- Endpoint.cs
- DataGridViewSelectedRowCollection.cs
- TextOptions.cs
- ObfuscateAssemblyAttribute.cs
- XmlValidatingReader.cs
- UnionExpr.cs
- GenericUriParser.cs
- UnitySerializationHolder.cs
- DataGridViewTextBoxEditingControl.cs
- MappedMetaModel.cs
- XmlDomTextWriter.cs
- ContainerUIElement3D.cs
- SelectorAutomationPeer.cs
- ComponentEditorForm.cs
- WebBrowserDocumentCompletedEventHandler.cs
- MailHeaderInfo.cs
- ObjectMemberMapping.cs
- TypeDescriptionProviderAttribute.cs
- PassportAuthenticationModule.cs
- BaseUriHelper.cs
- SerializationAttributes.cs
- Parameter.cs
- SchemaImporter.cs
- GridItemPattern.cs