Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RelatedPropertyManager.cs
- WhitespaceRule.cs
- PolyBezierSegmentFigureLogic.cs
- Marshal.cs
- SqlTriggerAttribute.cs
- ReachDocumentReferenceSerializerAsync.cs
- EventLogEntry.cs
- NullRuntimeConfig.cs
- ContentType.cs
- SqlBuilder.cs
- CqlIdentifiers.cs
- CommandExpr.cs
- ColorConverter.cs
- PointCollection.cs
- EventWaitHandleSecurity.cs
- ToolStripItemTextRenderEventArgs.cs
- SqlProviderServices.cs
- InArgumentConverter.cs
- TdsParserStaticMethods.cs
- HandleRef.cs
- DigitalSignatureProvider.cs
- StickyNote.cs
- OrderedDictionary.cs
- ExpressionVisitor.cs
- MultipartIdentifier.cs
- BindStream.cs
- SocketCache.cs
- CultureSpecificStringDictionary.cs
- SourceLineInfo.cs
- TypeEnumerableViewSchema.cs
- HttpCachePolicyBase.cs
- NoResizeSelectionBorderGlyph.cs
- FixedSOMLineRanges.cs
- DoubleLinkListEnumerator.cs
- ContextMarshalException.cs
- VirtualDirectoryMapping.cs
- ThrowHelper.cs
- DescendantQuery.cs
- OutOfMemoryException.cs
- InlineUIContainer.cs
- ResolveResponse.cs
- TreeWalkHelper.cs
- DataGridRowAutomationPeer.cs
- DataGridColumnHeaderCollection.cs
- DependencyProperty.cs
- TaskHelper.cs
- ColorTransformHelper.cs
- ButtonChrome.cs
- MatrixCamera.cs
- Html32TextWriter.cs
- Rect3D.cs
- UncommonField.cs
- ResourceProviderFactory.cs
- ProtocolsConfigurationHandler.cs
- AlignmentYValidation.cs
- InternalConfigEventArgs.cs
- BulletedList.cs
- VisualTarget.cs
- ReadContentAsBinaryHelper.cs
- FlowDocumentPage.cs
- EventsTab.cs
- MeasureItemEvent.cs
- MatrixValueSerializer.cs
- FrameworkElement.cs
- XmlNamespaceMappingCollection.cs
- CommonRemoteMemoryBlock.cs
- SchemaMapping.cs
- ServiceDesigner.cs
- XmlSerializationWriter.cs
- CodeDomConfigurationHandler.cs
- BitmapEffectDrawing.cs
- SizeAnimationClockResource.cs
- PriorityQueue.cs
- PerfCounterSection.cs
- NonceToken.cs
- DataGridViewAdvancedBorderStyle.cs
- OrthographicCamera.cs
- SingleStorage.cs
- PackageRelationshipSelector.cs
- AccessedThroughPropertyAttribute.cs
- ListenerUnsafeNativeMethods.cs
- HtmlTableRow.cs
- GeneralTransform3DTo2D.cs
- ProfileInfo.cs
- BindingManagerDataErrorEventArgs.cs
- LabelEditEvent.cs
- WindowsScrollBarBits.cs
- StaticResourceExtension.cs
- MarkedHighlightComponent.cs
- GeometryConverter.cs
- FontInfo.cs
- SmtpLoginAuthenticationModule.cs
- SystemKeyConverter.cs
- SwitchAttribute.cs
- StringComparer.cs
- Effect.cs
- Durable.cs
- MetadataPropertyvalue.cs
- TreeNodeBinding.cs
- SystemIcmpV6Statistics.cs