Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsPropertyWrongTypeException.cs
- URIFormatException.cs
- Bitmap.cs
- SqlDataSourceConfigureSelectPanel.cs
- ArgIterator.cs
- DoWorkEventArgs.cs
- StrokeFIndices.cs
- ProgressPage.cs
- WebControl.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- MarkupExtensionSerializer.cs
- EdmItemError.cs
- TailPinnedEventArgs.cs
- CompareInfo.cs
- SQLInt16.cs
- ClonableStack.cs
- GridToolTip.cs
- PathHelper.cs
- securestring.cs
- SmiEventSink_DeferedProcessing.cs
- Encoding.cs
- UnsafeNativeMethodsMilCoreApi.cs
- NavigatorInvalidBodyAccessException.cs
- ZipIOModeEnforcingStream.cs
- OverflowException.cs
- ErrorFormatterPage.cs
- EntitySetDataBindingList.cs
- CqlBlock.cs
- XmlSchemaObject.cs
- CodeIterationStatement.cs
- ProjectedSlot.cs
- SQLResource.cs
- RegexGroup.cs
- IntegrationExceptionEventArgs.cs
- PropertyFilterAttribute.cs
- BaseUriHelper.cs
- TextLineResult.cs
- TableLayoutRowStyleCollection.cs
- AsymmetricKeyExchangeFormatter.cs
- DataTableExtensions.cs
- OracleInternalConnection.cs
- ToolStripDropDownItem.cs
- CoTaskMemHandle.cs
- HitTestParameters3D.cs
- DataGridViewRowsAddedEventArgs.cs
- CollectionCodeDomSerializer.cs
- ScaleTransform3D.cs
- ADMembershipUser.cs
- XPathMessageFilterElementComparer.cs
- HttpHandler.cs
- MouseBinding.cs
- SQLInt16Storage.cs
- EntityDesignerDataSourceView.cs
- BitmapInitialize.cs
- FontInfo.cs
- DictionaryContent.cs
- ComponentRenameEvent.cs
- BaseDataListDesigner.cs
- IssuanceTokenProviderState.cs
- PermissionSetTriple.cs
- ValueTable.cs
- TrackingStringDictionary.cs
- DocComment.cs
- ConsoleKeyInfo.cs
- SchemaImporter.cs
- Exceptions.cs
- TextParagraph.cs
- RenderDataDrawingContext.cs
- PointAnimationClockResource.cs
- TranslateTransform.cs
- TreeNodeClickEventArgs.cs
- WebZone.cs
- HwndHostAutomationPeer.cs
- DataGridTable.cs
- BindUriHelper.cs
- ObjectCacheHost.cs
- WhitespaceRuleReader.cs
- ListItemParagraph.cs
- TextDecorations.cs
- XmlSchemaSimpleTypeUnion.cs
- CodeSubDirectory.cs
- DoubleAnimationClockResource.cs
- PageBuildProvider.cs
- TdsValueSetter.cs
- ComEventsInfo.cs
- MappedMetaModel.cs
- WhitespaceSignificantCollectionAttribute.cs
- ColumnCollectionEditor.cs
- ReliabilityContractAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- ObjectQuery.cs
- Configuration.cs
- CodeNamespaceCollection.cs
- WebPartDisplayModeCollection.cs
- FormCollection.cs
- TreeNodeStyleCollection.cs
- DetailsViewPageEventArgs.cs
- IpcClientManager.cs
- InvalidEnumArgumentException.cs
- WebPartConnectionsCancelVerb.cs