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
- SpeechRecognizer.cs
- MsmqAppDomainProtocolHandler.cs
- CodeSnippetCompileUnit.cs
- CalculatedColumn.cs
- TrackingServices.cs
- DataGridViewColumnStateChangedEventArgs.cs
- UriParserTemplates.cs
- SubstitutionResponseElement.cs
- MessageQueuePermission.cs
- TextEffectResolver.cs
- Compiler.cs
- IBuiltInEvidence.cs
- namescope.cs
- DragEventArgs.cs
- DeclaredTypeValidatorAttribute.cs
- ToolStripCustomTypeDescriptor.cs
- Int64AnimationBase.cs
- FloaterParagraph.cs
- SelectedGridItemChangedEvent.cs
- mediapermission.cs
- XsltLibrary.cs
- ChildrenQuery.cs
- ProcessThread.cs
- ConfigurationLocation.cs
- XmlBindingWorker.cs
- SelectionRange.cs
- KeyEventArgs.cs
- BitmapEffectInputData.cs
- Rule.cs
- SimpleLine.cs
- HttpRuntimeSection.cs
- ListViewGroupConverter.cs
- Trace.cs
- DataControlFieldCell.cs
- DeferredTextReference.cs
- UnSafeCharBuffer.cs
- LinqExpressionNormalizer.cs
- AsynchronousChannelMergeEnumerator.cs
- IIS7WorkerRequest.cs
- IgnoreSectionHandler.cs
- TrackingProfileDeserializationException.cs
- IssuedSecurityTokenParameters.cs
- CachingHintValidation.cs
- StatusBarDrawItemEvent.cs
- InplaceBitmapMetadataWriter.cs
- PDBReader.cs
- DrawingAttributes.cs
- RowTypePropertyElement.cs
- Pens.cs
- System.Data.OracleClient_BID.cs
- DataBoundControlHelper.cs
- AttributeProviderAttribute.cs
- EventLogPermissionAttribute.cs
- Directory.cs
- AuthorizationContext.cs
- NameValueCollection.cs
- ComponentEditorPage.cs
- ObjectDataSourceEventArgs.cs
- ExtendedTransformFactory.cs
- DefaultSection.cs
- XmlChoiceIdentifierAttribute.cs
- OptimalTextSource.cs
- ImageFormatConverter.cs
- PropertyCondition.cs
- ObjectNavigationPropertyMapping.cs
- SerialPort.cs
- controlskin.cs
- WorkflowFileItem.cs
- GetWinFXPath.cs
- IxmlLineInfo.cs
- ConnectionsZoneDesigner.cs
- CompilationRelaxations.cs
- SchemaNamespaceManager.cs
- IPHostEntry.cs
- IriParsingElement.cs
- DeviceSpecificChoiceCollection.cs
- ImplicitInputBrush.cs
- TagPrefixAttribute.cs
- SettingsPropertyValue.cs
- XmlElementAttributes.cs
- ExpressionParser.cs
- MenuTracker.cs
- DataRelationPropertyDescriptor.cs
- GlyphingCache.cs
- ChildDocumentBlock.cs
- RenderData.cs
- HashFinalRequest.cs
- AuthenticationManager.cs
- RegexRunnerFactory.cs
- ToolStripPanelSelectionGlyph.cs
- MetaChildrenColumn.cs
- ServiceOperationParameter.cs
- BlockExpression.cs
- BindingList.cs
- DiagnosticsConfiguration.cs
- CompilationRelaxations.cs
- WebPartDisplayMode.cs
- Select.cs
- TextParentUndoUnit.cs
- Win32.cs