Code:
/ 4.0 / 4.0 / 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.
//--------------------------------------------------------------------------------------------------
// 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
- PrintPreviewGraphics.cs
- SqlTransaction.cs
- TabRenderer.cs
- OrderPreservingPipeliningMergeHelper.cs
- ConcurrentBag.cs
- VScrollProperties.cs
- PaginationProgressEventArgs.cs
- path.cs
- Debug.cs
- JapaneseCalendar.cs
- ToolStripItemEventArgs.cs
- PropertyAccessVisitor.cs
- MouseActionValueSerializer.cs
- WebEvents.cs
- ListSortDescriptionCollection.cs
- DBBindings.cs
- WebServiceTypeData.cs
- Visitor.cs
- ReachDocumentPageSerializerAsync.cs
- BaseCAMarshaler.cs
- SerializationObjectManager.cs
- PasswordRecovery.cs
- DurableOperationAttribute.cs
- CodeCatchClauseCollection.cs
- SystemIcons.cs
- TimeStampChecker.cs
- SortedList.cs
- StrokeNodeData.cs
- ClassValidator.cs
- ColumnMapCopier.cs
- XmlProcessingInstruction.cs
- UrlRoutingModule.cs
- ToolStripItemDesigner.cs
- EntityDataSourceStatementEditor.cs
- Tuple.cs
- CacheDependency.cs
- DataSvcMapFile.cs
- ContentFileHelper.cs
- ContentFilePart.cs
- OdbcPermission.cs
- HttpResponseHeader.cs
- HtmlEncodedRawTextWriter.cs
- InvalidContentTypeException.cs
- PersonalizationStateInfoCollection.cs
- RuleProcessor.cs
- StringUtil.cs
- AutoCompleteStringCollection.cs
- DbExpressionBuilder.cs
- FileUtil.cs
- ToolStripItemTextRenderEventArgs.cs
- UnsafeNativeMethods.cs
- SiteMembershipCondition.cs
- SafeMILHandleMemoryPressure.cs
- COM2Enum.cs
- RowToParametersTransformer.cs
- LicenseManager.cs
- Type.cs
- XPathPatternBuilder.cs
- SemanticBasicElement.cs
- SoapIgnoreAttribute.cs
- TextTreeTextBlock.cs
- ScrollableControl.cs
- TrackingMemoryStreamFactory.cs
- SecurityRuntime.cs
- TextSelection.cs
- XmlValueConverter.cs
- TriggerCollection.cs
- MtomMessageEncodingBindingElement.cs
- Hash.cs
- ZipArchive.cs
- UnaryOperationBinder.cs
- ObjectDataSourceMethodEventArgs.cs
- OutOfProcStateClientManager.cs
- ValidationRuleCollection.cs
- FileStream.cs
- ScaleTransform.cs
- QueryRewriter.cs
- CodeActivity.cs
- LifetimeServices.cs
- DateTimeSerializationSection.cs
- DBConnectionString.cs
- NamespaceInfo.cs
- GPRECTF.cs
- TaskForm.cs
- cryptoapiTransform.cs
- AnnotationHelper.cs
- LayoutEngine.cs
- DiscoveryReference.cs
- XPathNodeInfoAtom.cs
- TimeoutConverter.cs
- ContextMenuAutomationPeer.cs
- TypedDatasetGenerator.cs
- ToolStripDropDownItem.cs
- StateFinalizationActivity.cs
- EntityContainer.cs
- UserMapPath.cs
- keycontainerpermission.cs
- RadialGradientBrush.cs
- ListSortDescriptionCollection.cs
- PointAnimationClockResource.cs