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
- DocumentAutomationPeer.cs
- SimpleMailWebEventProvider.cs
- ConversionContext.cs
- UnitControl.cs
- XmlSchemaDatatype.cs
- ConfigXmlComment.cs
- DbBuffer.cs
- MonthCalendar.cs
- HttpWrapper.cs
- LocationSectionRecord.cs
- LayoutEditorPart.cs
- GridItemPatternIdentifiers.cs
- IteratorDescriptor.cs
- basenumberconverter.cs
- MultiTrigger.cs
- PreloadHost.cs
- SystemIcmpV4Statistics.cs
- DataTableReaderListener.cs
- RuleSettingsCollection.cs
- WebPartDisplayModeEventArgs.cs
- ModelUIElement3D.cs
- DataChangedEventManager.cs
- ComponentConverter.cs
- AsyncContentLoadedEventArgs.cs
- DocumentCollection.cs
- XamlStyleSerializer.cs
- XomlCompilerParameters.cs
- JsonReaderWriterFactory.cs
- WsdlBuildProvider.cs
- DetailsViewPageEventArgs.cs
- XpsFixedPageReaderWriter.cs
- ServiceDesigner.cs
- Transform3D.cs
- Registry.cs
- MaskedTextBox.cs
- FontFamilyValueSerializer.cs
- PeerFlooder.cs
- NavigationWindowAutomationPeer.cs
- HtmlInputHidden.cs
- PersonalizationProvider.cs
- SqlDelegatedTransaction.cs
- MobileUserControlDesigner.cs
- VariableQuery.cs
- TextTreeUndo.cs
- UnsafeNativeMethods.cs
- GPStream.cs
- BamlTreeNode.cs
- RepeaterItemCollection.cs
- TypeListConverter.cs
- TableCellCollection.cs
- FixedSOMPageElement.cs
- EnumerableCollectionView.cs
- BaseCAMarshaler.cs
- Int64Converter.cs
- MDIClient.cs
- Rotation3DAnimation.cs
- BindableTemplateBuilder.cs
- CellPartitioner.cs
- MouseWheelEventArgs.cs
- SymDocumentType.cs
- TextFormatterHost.cs
- MergeFilterQuery.cs
- RootBrowserWindow.cs
- TextElement.cs
- DataAdapter.cs
- hresults.cs
- RoutedEventValueSerializer.cs
- BlurBitmapEffect.cs
- InputLanguageManager.cs
- UriSection.cs
- XmlSchemaImporter.cs
- FileDialog_Vista.cs
- DbConnectionHelper.cs
- FontWeightConverter.cs
- HostProtectionPermission.cs
- TextTreeText.cs
- HtmlControlPersistable.cs
- TransferRequestHandler.cs
- ExtensibleClassFactory.cs
- TabRenderer.cs
- VScrollBar.cs
- SettingsPropertyWrongTypeException.cs
- DetailsViewDeletedEventArgs.cs
- GACIdentityPermission.cs
- CompositeActivityMarkupSerializer.cs
- XmlSchemaAppInfo.cs
- LoopExpression.cs
- ValidationManager.cs
- MaskedTextBox.cs
- Selector.cs
- DependentList.cs
- ProxyFragment.cs
- OleDbMetaDataFactory.cs
- DbConnectionStringCommon.cs
- Regex.cs
- SafeHGlobalHandleCritical.cs
- ExitEventArgs.cs
- XPathParser.cs
- CodePageUtils.cs
- CodeDelegateCreateExpression.cs