Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / Microsoft / Win32 / SessionEndingEventArgs.cs / 1 / SessionEndingEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace Microsoft.Win32 { using System; using System.Diagnostics; using System.Security.Permissions; ////// [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; ///Provides data for the ///event. /// public SessionEndingEventArgs(SessionEndReasons reason) { this.reason = reason; } ///Initializes a new instance of the ///class. /// public bool Cancel { get { return cancel; } set { cancel = value; } } ///Gets or sets a value indicating whether to cancel the user request to end the session. ////// public SessionEndReasons Reason { get { return reason; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets how the session is ending. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace Microsoft.Win32 { using System; using System.Diagnostics; using System.Security.Permissions; ////// [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; ///Provides data for the ///event. /// public SessionEndingEventArgs(SessionEndReasons reason) { this.reason = reason; } ///Initializes a new instance of the ///class. /// public bool Cancel { get { return cancel; } set { cancel = value; } } ///Gets or sets a value indicating whether to cancel the user request to end the session. ////// public SessionEndReasons Reason { get { return reason; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets how the session is ending. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileDialogCustomPlace.cs
- Label.cs
- BlobPersonalizationState.cs
- ModifierKeysConverter.cs
- XhtmlBasicCalendarAdapter.cs
- CodeMemberMethod.cs
- RegexReplacement.cs
- EntityCommandDefinition.cs
- SignedXml.cs
- TraceLog.cs
- HttpValueCollection.cs
- TreeNodeClickEventArgs.cs
- XPathCompiler.cs
- SolidColorBrush.cs
- dsa.cs
- MetaTableHelper.cs
- XmlSchemaSimpleContentExtension.cs
- BrowsableAttribute.cs
- EntityReference.cs
- Fx.cs
- SqlDataSourceStatusEventArgs.cs
- HtmlGenericControl.cs
- SqlFormatter.cs
- RowsCopiedEventArgs.cs
- TextAdaptor.cs
- LoginCancelEventArgs.cs
- contentDescriptor.cs
- SapiRecoInterop.cs
- XMLSchema.cs
- DateTimeUtil.cs
- SourceInterpreter.cs
- FixUp.cs
- SpellCheck.cs
- EntityTypeBase.cs
- PrintPreviewDialog.cs
- TreeNodeCollectionEditorDialog.cs
- PreDigestedSignedInfo.cs
- EntityViewGenerationAttribute.cs
- RelOps.cs
- ImplicitInputBrush.cs
- EventToken.cs
- DataList.cs
- NativeCppClassAttribute.cs
- ContainerCodeDomSerializer.cs
- PermissionRequestEvidence.cs
- BindingNavigator.cs
- IOException.cs
- FormViewModeEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- IncrementalCompileAnalyzer.cs
- TextViewSelectionProcessor.cs
- BitStack.cs
- CqlParserHelpers.cs
- UpdateCommand.cs
- WindowsListViewItemCheckBox.cs
- XmlQueryOutput.cs
- AspCompat.cs
- OutputScopeManager.cs
- ScrollViewerAutomationPeer.cs
- TraceContext.cs
- NodeCounter.cs
- XamlWriter.cs
- HyperlinkAutomationPeer.cs
- XPathSingletonIterator.cs
- XmlUtf8RawTextWriter.cs
- WindowsPrincipal.cs
- ISO2022Encoding.cs
- SubqueryRules.cs
- DisplayNameAttribute.cs
- ReflectionHelper.cs
- DataServiceClientException.cs
- FileLogRecord.cs
- StringInfo.cs
- PrintDialog.cs
- HMAC.cs
- RestClientProxyHandler.cs
- MediaEntryAttribute.cs
- Compensate.cs
- Comparer.cs
- DataGridRowsPresenter.cs
- StylusPlugin.cs
- ToolTipService.cs
- TypeConverter.cs
- TextFormatterHost.cs
- SQLByte.cs
- ColorAnimationUsingKeyFrames.cs
- DataGridTable.cs
- PlanCompiler.cs
- CatalogZone.cs
- ConstructorNeedsTagAttribute.cs
- DelegatingConfigHost.cs
- ColumnHeader.cs
- SmtpSection.cs
- AsyncResult.cs
- TTSVoice.cs
- BaseTemplateParser.cs
- HwndStylusInputProvider.cs
- ConvertEvent.cs
- WindowPattern.cs
- Rect3D.cs