Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TimeSpanOrInfiniteValidator.cs
- ErrorLog.cs
- ImageEditor.cs
- SqlXmlStorage.cs
- ConstrainedDataObject.cs
- MultipleViewProviderWrapper.cs
- BindingBase.cs
- HoistedLocals.cs
- StaticTextPointer.cs
- SmiMetaDataProperty.cs
- ExtensionDataReader.cs
- PageParser.cs
- LOSFormatter.cs
- DataSourceHelper.cs
- Rect.cs
- EdmEntityTypeAttribute.cs
- ApplicationId.cs
- ValidationError.cs
- UIAgentMonitorHandle.cs
- OperandQuery.cs
- MethodToken.cs
- DrawingServices.cs
- DataGridViewColumn.cs
- ArrayEditor.cs
- SafeTimerHandle.cs
- Control.cs
- Point3DValueSerializer.cs
- PartialArray.cs
- CounterSampleCalculator.cs
- UpdatePanelTriggerCollection.cs
- ToolStripSettings.cs
- SystemIPGlobalProperties.cs
- ClientCredentials.cs
- ProtocolsConfigurationEntry.cs
- RegistryKey.cs
- ObjectDataProvider.cs
- RegexGroupCollection.cs
- MessageTransmitTraceRecord.cs
- NativeMethods.cs
- DelimitedListTraceListener.cs
- ToolboxCategory.cs
- CompleteWizardStep.cs
- SelectionWordBreaker.cs
- StorageAssociationTypeMapping.cs
- DllNotFoundException.cs
- ProviderConnectionPoint.cs
- ConsoleKeyInfo.cs
- InputLangChangeRequestEvent.cs
- LoginName.cs
- Pkcs7Recipient.cs
- TextRange.cs
- GlyphRunDrawing.cs
- SessionStateSection.cs
- DesignerSerializerAttribute.cs
- XPathDescendantIterator.cs
- SafePointer.cs
- EventLogRecord.cs
- ViewGenerator.cs
- CallTemplateAction.cs
- XmlSchemaException.cs
- HostingPreferredMapPath.cs
- _ChunkParse.cs
- PathParser.cs
- SourceFilter.cs
- Renderer.cs
- Icon.cs
- HandledMouseEvent.cs
- DocumentReference.cs
- TemplatedMailWebEventProvider.cs
- ToolStripPanelRenderEventArgs.cs
- DbConnectionInternal.cs
- ForwardPositionQuery.cs
- IntSecurity.cs
- Ref.cs
- FontFamily.cs
- NetworkInformationPermission.cs
- TypeGeneratedEventArgs.cs
- ConfigurationSectionCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- Inline.cs
- RegisteredExpandoAttribute.cs
- HierarchicalDataTemplate.cs
- FieldAccessException.cs
- DependencySource.cs
- HttpWebRequestElement.cs
- FrameworkTextComposition.cs
- Size3DValueSerializer.cs
- XmlSequenceWriter.cs
- RelatedEnd.cs
- MetadataArtifactLoaderCompositeResource.cs
- KeyGestureConverter.cs
- ZipIOExtraField.cs
- LicenseException.cs
- IIS7WorkerRequest.cs
- XmlDocumentViewSchema.cs
- ProtocolsSection.cs
- FormViewActionList.cs
- PictureBoxDesigner.cs
- AutomationElementCollection.cs
- CompilerCollection.cs