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
- OdbcFactory.cs
- JsonGlobals.cs
- ChooseAction.cs
- HtmlGenericControl.cs
- RelatedImageListAttribute.cs
- DbConnectionPoolGroupProviderInfo.cs
- SqlDataSourceFilteringEventArgs.cs
- BinaryOperationBinder.cs
- _ProxyChain.cs
- CompositionCommandSet.cs
- SemaphoreSecurity.cs
- DBPropSet.cs
- DataGridViewColumnCollection.cs
- TypeExtensionConverter.cs
- DocumentViewer.cs
- CodeDomSerializationProvider.cs
- MultiPropertyDescriptorGridEntry.cs
- ServiceReference.cs
- ToolStripContentPanel.cs
- LayoutSettings.cs
- ControlUtil.cs
- ListBoxItemAutomationPeer.cs
- WriterOutput.cs
- UnionCodeGroup.cs
- TextTreeInsertElementUndoUnit.cs
- NativeCppClassAttribute.cs
- ArrangedElementCollection.cs
- GroupBox.cs
- AlternateView.cs
- Visitor.cs
- ModulesEntry.cs
- Brush.cs
- FileStream.cs
- RowCache.cs
- EntityProviderFactory.cs
- Object.cs
- CompoundFileReference.cs
- SqlNamer.cs
- EntityDesignerDataSourceView.cs
- ReadOnlyTernaryTree.cs
- CustomActivityDesigner.cs
- WebPartCancelEventArgs.cs
- GenericFlowSwitchHelper.cs
- TextServicesManager.cs
- ControlCodeDomSerializer.cs
- ParallelDesigner.cs
- CultureInfoConverter.cs
- HotSpot.cs
- TypeProvider.cs
- CodeDomConfigurationHandler.cs
- SelectedPathEditor.cs
- PathGradientBrush.cs
- TableColumn.cs
- Subordinate.cs
- WhitespaceRuleReader.cs
- InstanceLockLostException.cs
- MenuScrollingVisibilityConverter.cs
- PropertyRecord.cs
- ChunkedMemoryStream.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- TrackingProfileDeserializationException.cs
- TemplateControl.cs
- ProcessModuleCollection.cs
- ResourcePool.cs
- COM2IDispatchConverter.cs
- SubordinateTransaction.cs
- Vector3DIndependentAnimationStorage.cs
- MethodResolver.cs
- TextEditorThreadLocalStore.cs
- Brush.cs
- Compiler.cs
- ComboBoxAutomationPeer.cs
- PreviewPageInfo.cs
- IDReferencePropertyAttribute.cs
- Freezable.cs
- TextEndOfSegment.cs
- HttpChannelBindingToken.cs
- DataException.cs
- SafeBitVector32.cs
- FacetEnabledSchemaElement.cs
- BitmapScalingModeValidation.cs
- ResourceDisplayNameAttribute.cs
- FixedSchema.cs
- _SSPIWrapper.cs
- NonParentingControl.cs
- ProfilePropertyNameValidator.cs
- SystemSounds.cs
- InputReport.cs
- DataGridViewTopRowAccessibleObject.cs
- SelectedDatesCollection.cs
- ResourcePermissionBaseEntry.cs
- DataGridViewDataConnection.cs
- AttributeCollection.cs
- Typeface.cs
- TextEditorMouse.cs
- CollectionViewProxy.cs
- FixedSOMPageElement.cs
- HighlightVisual.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- XmlElementCollection.cs