Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DescendantQuery.cs
- FatalException.cs
- XsltLoader.cs
- DataSourceCacheDurationConverter.cs
- TemplateBamlRecordReader.cs
- SafeIUnknown.cs
- EventMappingSettingsCollection.cs
- LogRestartAreaEnumerator.cs
- ToolStripGrip.cs
- ManagementScope.cs
- _FixedSizeReader.cs
- ProxyHelper.cs
- ReferenceSchema.cs
- TraceContextEventArgs.cs
- DependencyPropertyAttribute.cs
- XmlSchemaRedefine.cs
- SiteMapNodeCollection.cs
- InProcStateClientManager.cs
- PropertyInfoSet.cs
- GridPattern.cs
- FormsAuthenticationUserCollection.cs
- MetadataItemSerializer.cs
- SafeWaitHandle.cs
- SecurityDescriptor.cs
- BuildProviderCollection.cs
- ScrollEventArgs.cs
- DEREncoding.cs
- EmptyEnumerable.cs
- QuaternionRotation3D.cs
- DataServiceRequestException.cs
- GradientStop.cs
- WebReferencesBuildProvider.cs
- ParserHooks.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- OleDbMetaDataFactory.cs
- COM2AboutBoxPropertyDescriptor.cs
- SqlParameterCollection.cs
- TreeChangeInfo.cs
- JsonCollectionDataContract.cs
- ReflectionUtil.cs
- DesignerLoader.cs
- RelationshipWrapper.cs
- CryptoKeySecurity.cs
- figurelength.cs
- UnaryNode.cs
- DoubleAnimationUsingKeyFrames.cs
- Condition.cs
- WorkflowFormatterBehavior.cs
- DashStyle.cs
- XmlAnyElementAttribute.cs
- EnumerableCollectionView.cs
- SafeProcessHandle.cs
- Effect.cs
- DocumentPage.cs
- EntityProviderServices.cs
- CodeCastExpression.cs
- UshortList2.cs
- SAPICategories.cs
- BCLDebug.cs
- EdmProperty.cs
- GetCryptoTransformRequest.cs
- UIntPtr.cs
- KeyGesture.cs
- SystemUdpStatistics.cs
- LogWriteRestartAreaAsyncResult.cs
- XmlSchemaElement.cs
- ExpressionNormalizer.cs
- OutOfMemoryException.cs
- DisposableCollectionWrapper.cs
- InstanceValue.cs
- NetCodeGroup.cs
- TextUtf8RawTextWriter.cs
- UrlAuthorizationModule.cs
- OutputCacheSettingsSection.cs
- ContextMenuStrip.cs
- ContourSegment.cs
- XmlNamespaceMapping.cs
- ToolStripGripRenderEventArgs.cs
- DesignerProperties.cs
- WmpBitmapEncoder.cs
- QueryAccessibilityHelpEvent.cs
- SecurityIdentifierElement.cs
- Expander.cs
- AccessText.cs
- DataGridViewSelectedCellCollection.cs
- TabletDevice.cs
- DetailsViewUpdateEventArgs.cs
- TimeBoundedCache.cs
- GridItemPattern.cs
- FontSource.cs
- SqlXmlStorage.cs
- CalendarAutoFormatDialog.cs
- ExpressionBuilder.cs
- PeerEndPoint.cs
- IdentifierService.cs
- MenuItem.cs
- SID.cs
- WpfPayload.cs
- HybridDictionary.cs
- ComboBoxRenderer.cs