Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / Microsoft / Win32 / SessionEndingEventArgs.cs / 1305376 / SessionEndingEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace Microsoft.Win32 {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtectionAttribute(MayLeakOnAbort = true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class SessionEndingEventArgs : EventArgs {
private bool cancel;
private readonly SessionEndReasons reason;
///
/// Initializes a new instance of the class.
///
public SessionEndingEventArgs(SessionEndReasons reason) {
this.reason = reason;
}
///
/// Gets or sets a value indicating whether to cancel the user request to end the session.
///
public bool Cancel {
get {
return cancel;
}
set {
cancel = value;
}
}
///
/// Gets how the session is ending.
///
public SessionEndReasons Reason {
get {
return reason;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace Microsoft.Win32 {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtectionAttribute(MayLeakOnAbort = true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class SessionEndingEventArgs : EventArgs {
private bool cancel;
private readonly SessionEndReasons reason;
///
/// Initializes a new instance of the class.
///
public SessionEndingEventArgs(SessionEndReasons reason) {
this.reason = reason;
}
///
/// Gets or sets a value indicating whether to cancel the user request to end the session.
///
public bool Cancel {
get {
return cancel;
}
set {
cancel = value;
}
}
///
/// Gets how the session is ending.
///
public SessionEndReasons Reason {
get {
return reason;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebHttpSecurityModeHelper.cs
- DataBoundControlAdapter.cs
- ArgIterator.cs
- GridItemPatternIdentifiers.cs
- XPathNode.cs
- Walker.cs
- PageRanges.cs
- MemberAccessException.cs
- InputChannel.cs
- HtmlButton.cs
- CodeObject.cs
- RepeatButtonAutomationPeer.cs
- TypeForwardedFromAttribute.cs
- DataRelationPropertyDescriptor.cs
- CompatibleIComparer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ShowExpandedMultiValueConverter.cs
- RequestResizeEvent.cs
- EventProviderWriter.cs
- WindowsGraphics.cs
- ControlCodeDomSerializer.cs
- CorrelationActionMessageFilter.cs
- BitmapCacheBrush.cs
- XmlElement.cs
- MulticastNotSupportedException.cs
- HtmlHistory.cs
- ValueSerializer.cs
- ClientSettingsStore.cs
- _SecureChannel.cs
- AppDomainProtocolHandler.cs
- Configuration.cs
- DoubleUtil.cs
- SemaphoreSecurity.cs
- HttpListenerRequestUriBuilder.cs
- TypeDescriptionProviderAttribute.cs
- RuntimeResourceSet.cs
- EventManager.cs
- UIElementParagraph.cs
- Number.cs
- FtpCachePolicyElement.cs
- ImplicitInputBrush.cs
- TableColumnCollection.cs
- CharUnicodeInfo.cs
- DiscoveryMessageProperty.cs
- QuarticEase.cs
- DataSetUtil.cs
- _DomainName.cs
- SHA512.cs
- IndentedWriter.cs
- ThreadPoolTaskScheduler.cs
- DecimalAnimationUsingKeyFrames.cs
- Menu.cs
- SevenBitStream.cs
- MobileCapabilities.cs
- Section.cs
- HtmlImage.cs
- ImageFormatConverter.cs
- SafeNativeMethods.cs
- ContentElement.cs
- ObjectViewQueryResultData.cs
- oledbmetadatacollectionnames.cs
- SettingsBase.cs
- KnownBoxes.cs
- TreeWalker.cs
- DependencyProperty.cs
- SettingsBase.cs
- SyntaxCheck.cs
- UserControl.cs
- Privilege.cs
- SchemaImporterExtensionElement.cs
- ListMarkerLine.cs
- TextPointerBase.cs
- SerializerWriterEventHandlers.cs
- StyleCollection.cs
- Trace.cs
- XmlStreamNodeWriter.cs
- FontDriver.cs
- OracleLob.cs
- DBConnection.cs
- ExtentCqlBlock.cs
- ListItemCollection.cs
- RequestQueryProcessor.cs
- ClientFormsIdentity.cs
- ModifierKeysConverter.cs
- DataGridViewCellMouseEventArgs.cs
- XmlAggregates.cs
- X509ChainPolicy.cs
- StyleTypedPropertyAttribute.cs
- followingquery.cs
- DataSourceXmlSerializationAttribute.cs
- LogicalMethodInfo.cs
- SqlParameter.cs
- FrameworkTemplate.cs
- TrailingSpaceComparer.cs
- SqlDataSourceCommandEventArgs.cs
- TextHidden.cs
- ItemCollection.cs
- UnionCqlBlock.cs
- XmlSortKey.cs
- Perspective.cs