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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowInstanceRecord.cs
- XamlTreeBuilder.cs
- OptimizedTemplateContent.cs
- PageAsyncTask.cs
- SwitchCase.cs
- CompositeDuplexBindingElementImporter.cs
- ViewGenerator.cs
- StorageConditionPropertyMapping.cs
- Converter.cs
- MobilePage.cs
- RawStylusSystemGestureInputReport.cs
- InplaceBitmapMetadataWriter.cs
- UnsafeNativeMethods.cs
- ActiveXHelper.cs
- RawContentTypeMapper.cs
- PeerNameRecordCollection.cs
- RegexParser.cs
- ZipFileInfoCollection.cs
- AuthenticationManager.cs
- CasesDictionary.cs
- SqlClientPermission.cs
- AtomMaterializerLog.cs
- TextDecorationCollection.cs
- SafeNativeMethods.cs
- BulletChrome.cs
- GenerateScriptTypeAttribute.cs
- StackBuilderSink.cs
- NativeMethodsOther.cs
- LingerOption.cs
- TagPrefixAttribute.cs
- OwnerDrawPropertyBag.cs
- Point4D.cs
- SessionIDManager.cs
- MSAANativeProvider.cs
- CompiledAction.cs
- __ComObject.cs
- Stacktrace.cs
- Transform.cs
- SqlOuterApplyReducer.cs
- SqlTransaction.cs
- EventMappingSettingsCollection.cs
- AnnotationObservableCollection.cs
- DeflateInput.cs
- DesignerValidatorAdapter.cs
- DropSource.cs
- SecurityState.cs
- TdsValueSetter.cs
- NameValueSectionHandler.cs
- ButtonRenderer.cs
- ThrowOnMultipleAssignment.cs
- HostedTransportConfigurationBase.cs
- CompareValidator.cs
- IdentifierCollection.cs
- DecimalStorage.cs
- OdbcPermission.cs
- RequiredFieldValidator.cs
- ConstraintStruct.cs
- LambdaCompiler.Unary.cs
- AnnotationResourceChangedEventArgs.cs
- ProcessInfo.cs
- DynamicDataManager.cs
- ClientScriptManagerWrapper.cs
- PermissionSetTriple.cs
- CodeNamespaceImport.cs
- RadioButton.cs
- WindowsGraphics.cs
- DesignOnlyAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- Merger.cs
- TypeValidationEventArgs.cs
- UInt32Storage.cs
- Closure.cs
- XPathAxisIterator.cs
- ListItemViewAttribute.cs
- X509SubjectKeyIdentifierClause.cs
- GroupLabel.cs
- ContextQuery.cs
- InheritanceContextHelper.cs
- FontWeightConverter.cs
- TextShapeableCharacters.cs
- SignedXml.cs
- SymbolTable.cs
- OpCodes.cs
- WindowsRichEdit.cs
- EventLogPermissionAttribute.cs
- Keyboard.cs
- XmlWriterSettings.cs
- CryptographicAttribute.cs
- BitmapMetadata.cs
- IssuedSecurityTokenParameters.cs
- UInt64Storage.cs
- CollectionViewProxy.cs
- SiteMap.cs
- TextSpanModifier.cs
- SQLBytesStorage.cs
- VisualBrush.cs
- OrderedEnumerableRowCollection.cs
- CodeGenerationManager.cs
- FlatButtonAppearance.cs
- XmlDictionary.cs