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
- ObjectDataSourceView.cs
- ObjectReferenceStack.cs
- SymbolMethod.cs
- VectorCollectionConverter.cs
- XmlAttributeCollection.cs
- DeclaredTypeElement.cs
- RegexCompiler.cs
- ISAPIWorkerRequest.cs
- ExtendedProtectionPolicyElement.cs
- BinaryParser.cs
- DataBoundLiteralControl.cs
- ProcessHostMapPath.cs
- ChooseAction.cs
- NavigatorOutput.cs
- PropertySourceInfo.cs
- DataGridBoolColumn.cs
- Utils.cs
- HelpEvent.cs
- DataGridViewColumnEventArgs.cs
- CompoundFileIOPermission.cs
- PropertyIDSet.cs
- Timer.cs
- DataTransferEventArgs.cs
- COM2ColorConverter.cs
- BinaryReader.cs
- DrawListViewColumnHeaderEventArgs.cs
- XmlConvert.cs
- XPathArrayIterator.cs
- TypeElement.cs
- GrammarBuilderDictation.cs
- ProfileSettingsCollection.cs
- ReaderWriterLockWrapper.cs
- NonBatchDirectoryCompiler.cs
- CellConstantDomain.cs
- GeneratedCodeAttribute.cs
- InternalResources.cs
- TextBounds.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- SortedList.cs
- KoreanCalendar.cs
- DataSourceControl.cs
- SafeFileMappingHandle.cs
- Calendar.cs
- ZipIOLocalFileDataDescriptor.cs
- HierarchicalDataBoundControlAdapter.cs
- ReversePositionQuery.cs
- Rotation3DAnimationBase.cs
- ProviderException.cs
- HttpCapabilitiesEvaluator.cs
- RepeaterItemEventArgs.cs
- __FastResourceComparer.cs
- XmlResolver.cs
- IIS7WorkerRequest.cs
- _ConnectionGroup.cs
- BaseParser.cs
- AmbientValueAttribute.cs
- Keywords.cs
- _Events.cs
- DataSourceListEditor.cs
- QueryStoreStatusRequest.cs
- InstanceDescriptor.cs
- Logging.cs
- MobileFormsAuthentication.cs
- InvalidDataException.cs
- ActiveDesignSurfaceEvent.cs
- DynamicPropertyReader.cs
- ClientRolePrincipal.cs
- WriteableBitmap.cs
- XmlSubtreeReader.cs
- WebConfigurationHost.cs
- TreeNodeCollectionEditor.cs
- BinaryMethodMessage.cs
- OleDbConnectionFactory.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CookielessHelper.cs
- SQLMembershipProvider.cs
- TextPattern.cs
- List.cs
- UserControl.cs
- ParserHooks.cs
- ConfigurationManagerInternalFactory.cs
- EventRoute.cs
- SQLInt64.cs
- RTLAwareMessageBox.cs
- Directory.cs
- Visual.cs
- RulePatternOps.cs
- ListViewEditEventArgs.cs
- Binding.cs
- CqlLexer.cs
- CryptoStream.cs
- BinHexEncoding.cs
- ClientRoleProvider.cs
- UnsafeNativeMethodsCLR.cs
- WebPartDisplayModeCancelEventArgs.cs
- JoinTreeSlot.cs
- AutomationProperties.cs
- NameGenerator.cs
- ObjectStateFormatter.cs
- sapiproxy.cs