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
- LicenseProviderAttribute.cs
- MobileSysDescriptionAttribute.cs
- MappedMetaModel.cs
- XmlTextReaderImplHelpers.cs
- TokenBasedSet.cs
- ValueChangedEventManager.cs
- FilteredSchemaElementLookUpTable.cs
- Char.cs
- NativeMethods.cs
- TextEditorMouse.cs
- SerializableAttribute.cs
- InputProviderSite.cs
- UTF32Encoding.cs
- KeyMatchBuilder.cs
- Substitution.cs
- CodeTypeParameter.cs
- XmlSchemaCompilationSettings.cs
- ObjectDataSourceDisposingEventArgs.cs
- SqlExpressionNullability.cs
- StyleSelector.cs
- ExpressionBuilder.cs
- RTTrackingProfile.cs
- StorageEndPropertyMapping.cs
- Int32CollectionValueSerializer.cs
- MetabaseServerConfig.cs
- FactorySettingsElement.cs
- EntityDataSourceSelectedEventArgs.cs
- TCEAdapterGenerator.cs
- StorageAssociationSetMapping.cs
- DbConnectionStringCommon.cs
- DataColumnMapping.cs
- DesignerRegion.cs
- MenuCommand.cs
- Base64Decoder.cs
- DBCommand.cs
- TrustManagerPromptUI.cs
- EntityDataSourceStatementEditorForm.cs
- ChoiceConverter.cs
- ParameterSubsegment.cs
- ObjectDataSourceView.cs
- EmptyEnumerator.cs
- AutomationPropertyInfo.cs
- BaseParaClient.cs
- TextElementEnumerator.cs
- TypeGeneratedEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- WebPartMovingEventArgs.cs
- CellPartitioner.cs
- BufferedGraphics.cs
- AppAction.cs
- NativeRightsManagementAPIsStructures.cs
- PrivateFontCollection.cs
- Image.cs
- TableLayout.cs
- CalendarTable.cs
- _OverlappedAsyncResult.cs
- TextControlDesigner.cs
- AutomationPeer.cs
- DirtyTextRange.cs
- SimpleLine.cs
- SafeLibraryHandle.cs
- Size.cs
- TrackingRecord.cs
- MenuItemBindingCollection.cs
- StatusBarAutomationPeer.cs
- DocumentOrderComparer.cs
- ConfigXmlCDataSection.cs
- UnsafeNativeMethods.cs
- clipboard.cs
- TraceXPathNavigator.cs
- BooleanKeyFrameCollection.cs
- Root.cs
- BorderGapMaskConverter.cs
- ImageInfo.cs
- LogExtentCollection.cs
- NumberSubstitution.cs
- DecoratedNameAttribute.cs
- HttpHeaderCollection.cs
- VisualStates.cs
- ExpandCollapsePattern.cs
- RadioButtonList.cs
- SqlWriter.cs
- HostProtectionPermission.cs
- DownloadProgressEventArgs.cs
- ArrayElementGridEntry.cs
- RelatedPropertyManager.cs
- RepeatBehaviorConverter.cs
- InstanceDescriptor.cs
- MetricEntry.cs
- TextSpanModifier.cs
- FontStyle.cs
- AssemblyBuilderData.cs
- Block.cs
- _DigestClient.cs
- MethodImplAttribute.cs
- TextParagraphView.cs
- TagMapCollection.cs
- NavigationExpr.cs
- StyleSelector.cs
- ConfigXmlComment.cs