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; ////// [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
- GenericTextProperties.cs
- KnownColorTable.cs
- BitVec.cs
- RectangleHotSpot.cs
- IList.cs
- ItemType.cs
- ModifiableIteratorCollection.cs
- PagedDataSource.cs
- SelectionItemProviderWrapper.cs
- EditorZone.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- CallbackException.cs
- HttpBrowserCapabilitiesWrapper.cs
- ZipPackage.cs
- FaultPropagationRecord.cs
- TransferRequestHandler.cs
- DeferrableContentConverter.cs
- VisualTreeHelper.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ObjectStorage.cs
- XmlQualifiedName.cs
- InputScopeConverter.cs
- ValidationResult.cs
- handlecollector.cs
- ConnectionStringSettings.cs
- FormViewPageEventArgs.cs
- DrawingContextWalker.cs
- XslVisitor.cs
- HttpFormatExtensions.cs
- DNS.cs
- CookielessHelper.cs
- DataShape.cs
- TableParaClient.cs
- XsdSchemaFileEditor.cs
- DependencyPropertyDescriptor.cs
- MappingSource.cs
- DataSourceControlBuilder.cs
- ResourceManagerWrapper.cs
- BasicSecurityProfileVersion.cs
- FixedMaxHeap.cs
- DocumentReferenceCollection.cs
- Journal.cs
- ProfilePropertySettingsCollection.cs
- SaveFileDialog.cs
- XhtmlTextWriter.cs
- MD5HashHelper.cs
- DataRowView.cs
- WeakReferenceKey.cs
- Visitor.cs
- DataServiceEntityAttribute.cs
- RuleProcessor.cs
- ReadWriteControlDesigner.cs
- XhtmlBasicLinkAdapter.cs
- GPPOINT.cs
- ButtonStandardAdapter.cs
- MemberMaps.cs
- UnauthorizedAccessException.cs
- XPathConvert.cs
- MD5CryptoServiceProvider.cs
- TextPenaltyModule.cs
- ExpanderAutomationPeer.cs
- PropertySourceInfo.cs
- LabelLiteral.cs
- IMembershipProvider.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ResourceContainer.cs
- TemplateXamlParser.cs
- ProfessionalColorTable.cs
- Cursor.cs
- ScriptingProfileServiceSection.cs
- RootNamespaceAttribute.cs
- ListViewItemMouseHoverEvent.cs
- PageTheme.cs
- WebHttpEndpointElement.cs
- StructuredType.cs
- SelectionProcessor.cs
- AsyncPostBackErrorEventArgs.cs
- ObjectQueryExecutionPlan.cs
- TitleStyle.cs
- FileClassifier.cs
- Empty.cs
- TrackingMemoryStream.cs
- ISAPIWorkerRequest.cs
- CheckBoxList.cs
- MouseCaptureWithinProperty.cs
- DynamicPropertyReader.cs
- ByteAnimationBase.cs
- FileDialog.cs
- X509ChainPolicy.cs
- RangeValueProviderWrapper.cs
- AdornerLayer.cs
- WebBrowser.cs
- SequenceFullException.cs
- PropertyStore.cs
- DispatcherProcessingDisabled.cs
- RenderOptions.cs
- LayoutEditorPart.cs
- SQLBoolean.cs
- PictureBoxDesigner.cs
- InheritablePropertyChangeInfo.cs