Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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: [....] 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
- DocumentGrid.cs
- SimpleApplicationHost.cs
- TableLayoutStyle.cs
- FileChangesMonitor.cs
- NavigationCommands.cs
- WindowsRichEdit.cs
- OleDbConnectionFactory.cs
- DesignTimeParseData.cs
- MemoryResponseElement.cs
- EpmCustomContentDeSerializer.cs
- DesignConnection.cs
- StringBuilder.cs
- CollectionBase.cs
- WhitespaceRuleLookup.cs
- WorkflowRuntimeSection.cs
- TextBounds.cs
- XmlBinaryReader.cs
- FromReply.cs
- FastEncoderWindow.cs
- JournalEntry.cs
- Grant.cs
- Registry.cs
- webeventbuffer.cs
- _ListenerAsyncResult.cs
- FragmentNavigationEventArgs.cs
- DeclarativeCatalogPart.cs
- BatchParser.cs
- BaseCAMarshaler.cs
- DesignerAttribute.cs
- CodeNamespace.cs
- VirtualPathExtension.cs
- SqlDataSourceConnectionPanel.cs
- OperationAbortedException.cs
- IssuedTokenClientElement.cs
- GuidConverter.cs
- DesignerValidationSummaryAdapter.cs
- AsyncResult.cs
- DataRecordInternal.cs
- ListViewTableCell.cs
- ToolStripTextBox.cs
- CounterNameConverter.cs
- VirtualizedContainerService.cs
- ContractNamespaceAttribute.cs
- Int64Storage.cs
- ImageField.cs
- RandomNumberGenerator.cs
- ProvidersHelper.cs
- ExitEventArgs.cs
- ExpandCollapsePattern.cs
- ResolveMatches11.cs
- ExpressionLink.cs
- SendMailErrorEventArgs.cs
- WbemProvider.cs
- FacetDescriptionElement.cs
- Wildcard.cs
- SchemaElementDecl.cs
- OleServicesContext.cs
- ProfilePropertyNameValidator.cs
- Semaphore.cs
- StdValidatorsAndConverters.cs
- ListSurrogate.cs
- BamlResourceContent.cs
- CompilerHelpers.cs
- WebPartVerbCollection.cs
- InternalBase.cs
- srgsitem.cs
- CodeSubDirectoriesCollection.cs
- TextBoxView.cs
- GroupItem.cs
- Utils.cs
- Item.cs
- ListViewDataItem.cs
- GPRECT.cs
- GeneralTransform3DGroup.cs
- TempFiles.cs
- PolicyLevel.cs
- XamlParser.cs
- TextEditorThreadLocalStore.cs
- EdmValidator.cs
- ExpressionBuilderCollection.cs
- DecodeHelper.cs
- FilterException.cs
- ErrorWebPart.cs
- CacheRequest.cs
- Misc.cs
- ClickablePoint.cs
- DBDataPermission.cs
- IteratorDescriptor.cs
- FixedSOMLineRanges.cs
- _NTAuthentication.cs
- CatalogPart.cs
- ImageCodecInfoPrivate.cs
- BindingListCollectionView.cs
- FrameDimension.cs
- ExtenderControl.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- RectAnimationUsingKeyFrames.cs
- SvcMapFileSerializer.cs
- WriteableOnDemandPackagePart.cs
- TrackingProvider.cs