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
- DynamicRenderer.cs
- DataControlFieldCell.cs
- DesignerSerializerAttribute.cs
- HierarchicalDataTemplate.cs
- CommonProperties.cs
- SafeEventLogReadHandle.cs
- ToolbarAUtomationPeer.cs
- ToolStripArrowRenderEventArgs.cs
- GradientStop.cs
- ProtectedConfiguration.cs
- AssemblySettingAttributes.cs
- ErrorFormatter.cs
- ListSortDescription.cs
- LocatorPartList.cs
- NativeMethods.cs
- ClientUrlResolverWrapper.cs
- SessionIDManager.cs
- MouseEventArgs.cs
- DetailsViewRow.cs
- ProfilePropertySettings.cs
- Propagator.cs
- EventManager.cs
- StructureChangedEventArgs.cs
- TextProperties.cs
- FileInfo.cs
- WebReference.cs
- CalendarButtonAutomationPeer.cs
- LayoutEditorPart.cs
- Renderer.cs
- ProtocolsConfiguration.cs
- HasActivatableWorkflowEvent.cs
- MultipleViewPattern.cs
- DoubleLink.cs
- GenerateTemporaryTargetAssembly.cs
- GenericQueueSurrogate.cs
- LogWriteRestartAreaState.cs
- CompilationUtil.cs
- EventTrigger.cs
- XmlUrlResolver.cs
- SafeArrayTypeMismatchException.cs
- LogManagementAsyncResult.cs
- DispatcherEventArgs.cs
- DateTimeValueSerializerContext.cs
- UncommonField.cs
- PerformanceCounterPermissionAttribute.cs
- FixedSOMSemanticBox.cs
- DuplexChannelFactory.cs
- ToolStripHighContrastRenderer.cs
- DecimalAnimation.cs
- SiteMapPathDesigner.cs
- ColorKeyFrameCollection.cs
- MarkupExtensionReturnTypeAttribute.cs
- MultilineStringConverter.cs
- EdmFunctions.cs
- IntSecurity.cs
- UriTemplateCompoundPathSegment.cs
- ProfilePropertyMetadata.cs
- XPathExpr.cs
- XmlConvert.cs
- PreservationFileReader.cs
- Hashtable.cs
- ContentFileHelper.cs
- CharEntityEncoderFallback.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- RepeaterCommandEventArgs.cs
- DesignerVerb.cs
- CurrentChangingEventArgs.cs
- PropertyDescriptors.cs
- ScrollableControl.cs
- _CommandStream.cs
- SharingService.cs
- HttpApplication.cs
- ViewManager.cs
- ProcessHostServerConfig.cs
- WinCategoryAttribute.cs
- SimpleTextLine.cs
- UpdateRecord.cs
- SqlDataAdapter.cs
- ThreadPool.cs
- PagesSection.cs
- CellLabel.cs
- WebDisplayNameAttribute.cs
- PopupRootAutomationPeer.cs
- Propagator.ExtentPlaceholderCreator.cs
- ReflectionPermission.cs
- ClientSettings.cs
- SettingsPropertyIsReadOnlyException.cs
- CodeDelegateInvokeExpression.cs
- GACMembershipCondition.cs
- BindValidator.cs
- SettingsContext.cs
- InternalEnumValidator.cs
- Int64.cs
- NumberFormatter.cs
- WindowsRichEdit.cs
- TransformGroup.cs
- PageAsyncTask.cs
- ByteStorage.cs
- LineGeometry.cs
- SerializationTrace.cs