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
- LinearGradientBrush.cs
- AuthenticatedStream.cs
- Debugger.cs
- BuildProviderInstallComponent.cs
- WmlMobileTextWriter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- UndoUnit.cs
- TextServicesProperty.cs
- DesignerDataStoredProcedure.cs
- DefaultClaimSet.cs
- SqlBulkCopyColumnMapping.cs
- DragDrop.cs
- ConfigurationElementProperty.cs
- ModuleConfigurationInfo.cs
- ProtocolViolationException.cs
- FontFamily.cs
- EditorZone.cs
- RectangleF.cs
- ApplicationSettingsBase.cs
- BorderSidesEditor.cs
- BitmapDecoder.cs
- SafeNativeMethodsCLR.cs
- Decorator.cs
- SoapAttributeOverrides.cs
- BCLDebug.cs
- SafeThemeHandle.cs
- EncryptedType.cs
- FramingFormat.cs
- ProfilePropertyMetadata.cs
- ProcessModelSection.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- LayoutManager.cs
- SchemeSettingElementCollection.cs
- XmlSchemaIdentityConstraint.cs
- SafeMILHandleMemoryPressure.cs
- ContainsRowNumberChecker.cs
- SafeSecurityHelper.cs
- HierarchicalDataBoundControlAdapter.cs
- RIPEMD160.cs
- XmlWrappingReader.cs
- ThreadStaticAttribute.cs
- XmlSchemaDatatype.cs
- EntityDataSourceViewSchema.cs
- ReadOnlyCollection.cs
- MetadataPropertyCollection.cs
- DrawListViewColumnHeaderEventArgs.cs
- ContainerControl.cs
- FixedPosition.cs
- CmsUtils.cs
- DropDownButton.cs
- NotifyParentPropertyAttribute.cs
- __Filters.cs
- ExpandableObjectConverter.cs
- ProcessModelSection.cs
- ClonableStack.cs
- LineServicesRun.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SecureUICommand.cs
- FixUpCollection.cs
- GeneralTransform.cs
- QilReference.cs
- QueryFunctions.cs
- IList.cs
- ConvertEvent.cs
- IgnoreFileBuildProvider.cs
- ColumnMapProcessor.cs
- ToolStripItemDesigner.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- PersistChildrenAttribute.cs
- FileSystemInfo.cs
- LockRecoveryTask.cs
- ButtonDesigner.cs
- ConnectionStringSettings.cs
- BindableTemplateBuilder.cs
- MetadataResolver.cs
- XmlReaderDelegator.cs
- NamespaceCollection.cs
- AssemblyResourceLoader.cs
- SplitContainer.cs
- ValidationSettings.cs
- FormViewCommandEventArgs.cs
- CustomExpression.cs
- WebPartRestoreVerb.cs
- CultureMapper.cs
- DiffuseMaterial.cs
- ToolStripItem.cs
- SafeCryptHandles.cs
- DataGridViewCellLinkedList.cs
- InputDevice.cs
- RuleProcessor.cs
- OrthographicCamera.cs
- SecurityAccessDeniedException.cs
- List.cs
- LoginUtil.cs
- FormViewUpdatedEventArgs.cs
- AnonymousIdentificationModule.cs
- ExpressionQuoter.cs
- XMLDiffLoader.cs
- ThemeDirectoryCompiler.cs
- DesignerRegionMouseEventArgs.cs