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
- srgsitem.cs
- ServiceKnownTypeAttribute.cs
- SoapExtensionTypeElement.cs
- DocumentSequence.cs
- UnmanagedHandle.cs
- ColorMatrix.cs
- RangeBase.cs
- ContentOperations.cs
- ScrollBarAutomationPeer.cs
- DataGridTextBoxColumn.cs
- StreamGeometry.cs
- RealizationContext.cs
- ErrorWebPart.cs
- WebPartsPersonalizationAuthorization.cs
- XhtmlBasicSelectionListAdapter.cs
- XMLSchema.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- CodeDirectoryCompiler.cs
- SamlSecurityTokenAuthenticator.cs
- InvokePattern.cs
- XPathChildIterator.cs
- TextTreeTextElementNode.cs
- SQLInt64.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- SpellerStatusTable.cs
- SettingsContext.cs
- CommandHelper.cs
- ControlPropertyNameConverter.cs
- ClrPerspective.cs
- DoubleLinkListEnumerator.cs
- ContextMenu.cs
- WindowsToolbarItemAsMenuItem.cs
- WebPartZoneBase.cs
- ScrollProviderWrapper.cs
- DataFormat.cs
- TraceRecord.cs
- externdll.cs
- DynamicRenderer.cs
- ToolStripPanelRow.cs
- XmlSchemaFacet.cs
- PropertyChangedEventArgs.cs
- AssociatedControlConverter.cs
- PointCollection.cs
- IndentedWriter.cs
- TemplateComponentConnector.cs
- PropertyCondition.cs
- CreateUserWizardAutoFormat.cs
- nulltextnavigator.cs
- CompilerWrapper.cs
- SplineQuaternionKeyFrame.cs
- StaticFileHandler.cs
- AnnotationAuthorChangedEventArgs.cs
- CodeRemoveEventStatement.cs
- ReadOnlyNameValueCollection.cs
- QueryOperationResponseOfT.cs
- PropertyDescriptorCollection.cs
- TypeForwardedToAttribute.cs
- XPathMessageFilterElementCollection.cs
- MessagePropertyVariants.cs
- WebBrowsableAttribute.cs
- Utils.cs
- Model3DGroup.cs
- PackagePart.cs
- DynamicMethod.cs
- DataSourceHelper.cs
- SharedTcpTransportManager.cs
- LoginCancelEventArgs.cs
- AuthorizationRule.cs
- AlphaSortedEnumConverter.cs
- SizeFConverter.cs
- LicenseContext.cs
- LoginName.cs
- ErrorInfoXmlDocument.cs
- ToolStripDropDownClosingEventArgs.cs
- DrawingAttributesDefaultValueFactory.cs
- Transform.cs
- RIPEMD160.cs
- QilExpression.cs
- ArrangedElementCollection.cs
- ReliabilityContractAttribute.cs
- DataGridTable.cs
- XComponentModel.cs
- InkPresenterAutomationPeer.cs
- DataColumnCollection.cs
- DebugHandleTracker.cs
- IPEndPointCollection.cs
- UnknownWrapper.cs
- ThreadStateException.cs
- ZipFileInfo.cs
- PersonalizableAttribute.cs
- WindowPatternIdentifiers.cs
- SerializationSectionGroup.cs
- ListDictionaryInternal.cs
- DiscreteKeyFrames.cs
- UIElementCollection.cs
- CroppedBitmap.cs
- PlanCompiler.cs
- SqlSelectStatement.cs
- followingsibling.cs
- Point4DValueSerializer.cs