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
- MailDefinition.cs
- DataBindingExpressionBuilder.cs
- AssemblyBuilderData.cs
- QuaternionRotation3D.cs
- AesCryptoServiceProvider.cs
- Stackframe.cs
- CharacterMetrics.cs
- KeyGesture.cs
- DataGridViewCellPaintingEventArgs.cs
- OdbcRowUpdatingEvent.cs
- MarkupCompiler.cs
- EventlogProvider.cs
- CompositeTypefaceMetrics.cs
- TemplateXamlTreeBuilder.cs
- SingleAnimationUsingKeyFrames.cs
- SafeCryptContextHandle.cs
- QuaternionRotation3D.cs
- ValidationSummary.cs
- QuadraticBezierSegment.cs
- Schedule.cs
- ValidationErrorCollection.cs
- FileDataSourceCache.cs
- LazyInitializer.cs
- CheckBox.cs
- Point3DKeyFrameCollection.cs
- NetCodeGroup.cs
- CompilerGeneratedAttribute.cs
- Effect.cs
- DataTableClearEvent.cs
- LazyTextWriterCreator.cs
- ButtonFieldBase.cs
- RangeValueProviderWrapper.cs
- RegexRunner.cs
- ClrProviderManifest.cs
- PropertiesTab.cs
- DispatcherProcessingDisabled.cs
- OracleConnectionString.cs
- DSACryptoServiceProvider.cs
- SamlConditions.cs
- HotCommands.cs
- ToolBar.cs
- GPRECTF.cs
- Normalization.cs
- StructuredType.cs
- SerializationEventsCache.cs
- DataGridViewCellStyleConverter.cs
- ECDsa.cs
- CommonObjectSecurity.cs
- ListCollectionView.cs
- TypeForwardedToAttribute.cs
- DispatcherEventArgs.cs
- Base64Decoder.cs
- SiteMapProvider.cs
- TraceHandler.cs
- SoapSchemaMember.cs
- Rotation3D.cs
- BooleanToVisibilityConverter.cs
- SqlUtils.cs
- BitStream.cs
- PanelStyle.cs
- ApplicationInfo.cs
- selecteditemcollection.cs
- SqlAliaser.cs
- SchemaTableColumn.cs
- AttachedAnnotation.cs
- LabelLiteral.cs
- TraceSection.cs
- Executor.cs
- BrowserCapabilitiesCodeGenerator.cs
- PageSetupDialog.cs
- NonVisualControlAttribute.cs
- FileIOPermission.cs
- HttpPostProtocolReflector.cs
- CompilerGlobalScopeAttribute.cs
- RightsManagementProvider.cs
- StringFunctions.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- CalendarDateChangedEventArgs.cs
- TextAction.cs
- EastAsianLunisolarCalendar.cs
- PriorityQueue.cs
- StatusBarItem.cs
- BaseResourcesBuildProvider.cs
- OutputCache.cs
- AppDomainFactory.cs
- URLIdentityPermission.cs
- BmpBitmapEncoder.cs
- HWStack.cs
- MessageQueuePermissionAttribute.cs
- SafeSerializationManager.cs
- DataGridViewTextBoxCell.cs
- KeyConverter.cs
- Native.cs
- WebScriptClientGenerator.cs
- ButtonFieldBase.cs
- DrawingGroupDrawingContext.cs
- InstanceDataCollection.cs
- DescendantQuery.cs
- MenuEventArgs.cs
- HMACSHA384.cs