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
- RIPEMD160Managed.cs
- QueryableDataSourceEditData.cs
- UrlAuthFailedErrorFormatter.cs
- StructuralObject.cs
- _OverlappedAsyncResult.cs
- AddressHeaderCollectionElement.cs
- SystemFonts.cs
- Facet.cs
- D3DImage.cs
- ContentOperations.cs
- PageSettings.cs
- ZoneMembershipCondition.cs
- BaseCollection.cs
- InputProcessorProfilesLoader.cs
- CrossSiteScriptingValidation.cs
- Int32AnimationUsingKeyFrames.cs
- PEFileEvidenceFactory.cs
- TypeDependencyAttribute.cs
- TransactionContext.cs
- WinEventHandler.cs
- StateDesignerConnector.cs
- TcpClientSocketManager.cs
- StyleSheetComponentEditor.cs
- XmlTextEncoder.cs
- ExceptionHandlerDesigner.cs
- ResourcePool.cs
- DrawingImage.cs
- ConstraintEnumerator.cs
- ViewStateException.cs
- ComEventsMethod.cs
- MetadataException.cs
- StringDictionary.cs
- ToolStripDropDownItem.cs
- ContractBase.cs
- GC.cs
- BuildProviderAppliesToAttribute.cs
- XmlMapping.cs
- ButtonAutomationPeer.cs
- EnumerableRowCollectionExtensions.cs
- TransactionState.cs
- NotificationContext.cs
- CSharpCodeProvider.cs
- SHA256.cs
- StatusBarAutomationPeer.cs
- ControlBuilderAttribute.cs
- ObjectTokenCategory.cs
- FileNotFoundException.cs
- ListMarkerSourceInfo.cs
- Rfc2898DeriveBytes.cs
- IgnoreSectionHandler.cs
- PropertyTabAttribute.cs
- ArrayEditor.cs
- WebPartZoneCollection.cs
- SHA512.cs
- SchemaInfo.cs
- StringBlob.cs
- Resources.Designer.cs
- SplitterPanel.cs
- ControlCollection.cs
- ExceptionRoutedEventArgs.cs
- FloaterBaseParagraph.cs
- DesignerDataConnection.cs
- HttpChannelListener.cs
- MailMessage.cs
- cache.cs
- SinglePhaseEnlistment.cs
- TTSEvent.cs
- ColorIndependentAnimationStorage.cs
- InnerItemCollectionView.cs
- SamlAction.cs
- Image.cs
- ThreadAttributes.cs
- WorkflowEnvironment.cs
- AdornerPresentationContext.cs
- Annotation.cs
- DataServiceClientException.cs
- TargetConverter.cs
- MissingMethodException.cs
- AssertSection.cs
- RegexReplacement.cs
- WSSecurityXXX2005.cs
- MimeMapping.cs
- ResourceSet.cs
- WebConfigurationHost.cs
- Pen.cs
- XmlSchemaInferenceException.cs
- DataGridViewCellCollection.cs
- CalendarModeChangedEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- RemotingServices.cs
- ServiceRouteHandler.cs
- GetFileNameResult.cs
- RenderData.cs
- PerformanceCounterCategory.cs
- UInt16Converter.cs
- ParentControlDesigner.cs
- DateTime.cs
- ContentValidator.cs
- StringDictionary.cs
- WsatConfiguration.cs