Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InheritanceAttribute.cs
- FormViewInsertEventArgs.cs
- PropertyMappingExceptionEventArgs.cs
- MessageAction.cs
- ToolStripPanelCell.cs
- DispatcherEventArgs.cs
- LocatorPartList.cs
- WindowShowOrOpenTracker.cs
- DependencyPropertyValueSerializer.cs
- TaskResultSetter.cs
- SqlFacetAttribute.cs
- ScriptBehaviorDescriptor.cs
- DataGridViewCellFormattingEventArgs.cs
- MultiAsyncResult.cs
- LinearKeyFrames.cs
- FontFamilyValueSerializer.cs
- BitHelper.cs
- ConfigurationStrings.cs
- Transform3DGroup.cs
- XmlAnyAttributeAttribute.cs
- ObjectDataSourceMethodEventArgs.cs
- WebResourceAttribute.cs
- DocumentViewerHelper.cs
- DuplicateWaitObjectException.cs
- validation.cs
- ObjectDataSource.cs
- ApplicationTrust.cs
- OLEDB_Util.cs
- ToolStripLabel.cs
- StateValidator.cs
- BidPrivateBase.cs
- Events.cs
- RelationshipWrapper.cs
- DictionaryItemsCollection.cs
- DocumentGridPage.cs
- RegexCode.cs
- ExtensionWindowResizeGrip.cs
- HttpPostedFile.cs
- ToolStripDesigner.cs
- ProxyOperationRuntime.cs
- TextParentUndoUnit.cs
- StrongTypingException.cs
- FactoryGenerator.cs
- ErrorFormatterPage.cs
- EntityDataSourceSelectedEventArgs.cs
- CompositeDataBoundControl.cs
- KeyedCollection.cs
- CmsInterop.cs
- HyperlinkAutomationPeer.cs
- TextTabProperties.cs
- SystemFonts.cs
- CacheDependency.cs
- CachedTypeface.cs
- FormsAuthenticationTicket.cs
- SingleTagSectionHandler.cs
- PassportAuthentication.cs
- AvtEvent.cs
- FrugalList.cs
- DataGridCellInfo.cs
- XmlSchemaRedefine.cs
- PauseStoryboard.cs
- OciHandle.cs
- Activity.cs
- QuotedPairReader.cs
- XmlParserContext.cs
- EntityChangedParams.cs
- DelegateHelpers.cs
- SQLBinaryStorage.cs
- Convert.cs
- ClientSettingsProvider.cs
- CopyCodeAction.cs
- MemoryRecordBuffer.cs
- MatrixKeyFrameCollection.cs
- WebPartUtil.cs
- _AutoWebProxyScriptEngine.cs
- ItemCollectionEditor.cs
- EdgeModeValidation.cs
- TextEditorCopyPaste.cs
- FormatterServices.cs
- Shape.cs
- RoleProviderPrincipal.cs
- HostnameComparisonMode.cs
- DesignerOptionService.cs
- IdleTimeoutMonitor.cs
- SecurityPermission.cs
- GeneralTransformGroup.cs
- PageClientProxyGenerator.cs
- DataTablePropertyDescriptor.cs
- ParentControlDesigner.cs
- XmlNodeChangedEventArgs.cs
- EditorZone.cs
- FormDesigner.cs
- InputLanguage.cs
- SatelliteContractVersionAttribute.cs
- KeyEventArgs.cs
- RepeatBehaviorConverter.cs
- BitmapEffectInputData.cs
- SimpleHandlerFactory.cs
- ReliableSessionBindingElement.cs
- ExpressionEditorSheet.cs