Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }Gets how the session is ending. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ThreadAttributes.cs
- LogicalTreeHelper.cs
- VirtualDirectoryMappingCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- basevalidator.cs
- CharacterMetricsDictionary.cs
- CommandBinding.cs
- __ComObject.cs
- XmlSchemaDocumentation.cs
- XmlParserContext.cs
- XmlAnyElementAttribute.cs
- WebPartsSection.cs
- KeyValueConfigurationElement.cs
- OlePropertyStructs.cs
- VectorAnimation.cs
- MergeExecutor.cs
- SqlConnectionFactory.cs
- SlotInfo.cs
- PolicyReader.cs
- ConfigurationLocationCollection.cs
- TransformProviderWrapper.cs
- InternalControlCollection.cs
- SolidColorBrush.cs
- SHA512.cs
- HtmlUtf8RawTextWriter.cs
- RawStylusInputReport.cs
- FileDialog.cs
- Baml2006ReaderContext.cs
- DbConnectionPoolOptions.cs
- ByteStack.cs
- Quaternion.cs
- LoadMessageLogger.cs
- GPRECT.cs
- ArrayItemValue.cs
- SecurityContext.cs
- GeneralTransformCollection.cs
- ImageMetadata.cs
- AttributeCollection.cs
- OrderPreservingSpoolingTask.cs
- OverlappedAsyncResult.cs
- LinqTreeNodeEvaluator.cs
- BroadcastEventHelper.cs
- DataGridRelationshipRow.cs
- Variant.cs
- CommonRemoteMemoryBlock.cs
- FormViewActionList.cs
- FilterException.cs
- DialogResultConverter.cs
- FrameworkContentElement.cs
- GeometryGroup.cs
- CodeSnippetCompileUnit.cs
- XmlArrayItemAttribute.cs
- TextFormatterImp.cs
- ServicePointManagerElement.cs
- Descriptor.cs
- ComponentChangingEvent.cs
- SafeHandles.cs
- FileEnumerator.cs
- MeasureItemEvent.cs
- RestHandlerFactory.cs
- FontNameEditor.cs
- HtmlHead.cs
- GregorianCalendar.cs
- WorkflowView.cs
- ConfigurationPermission.cs
- InstanceHandle.cs
- AnimatedTypeHelpers.cs
- NativeMethodsOther.cs
- MappingItemCollection.cs
- InProcStateClientManager.cs
- ZeroOpNode.cs
- XmlIlVisitor.cs
- MD5.cs
- CurrencyManager.cs
- VerticalAlignConverter.cs
- TdsValueSetter.cs
- Tokenizer.cs
- DesignSurface.cs
- NavigatingCancelEventArgs.cs
- CultureInfoConverter.cs
- AmbientValueAttribute.cs
- DateTimeConverter.cs
- PropertyEmitter.cs
- Vector3DIndependentAnimationStorage.cs
- AppSettingsReader.cs
- ValuePattern.cs
- PolicyManager.cs
- RowUpdatedEventArgs.cs
- FrameworkElementFactory.cs
- DataBinder.cs
- ObjectDataSource.cs
- LingerOption.cs
- DataSpaceManager.cs
- RSAPKCS1KeyExchangeFormatter.cs
- AuthenticationConfig.cs
- basevalidator.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- LabelAutomationPeer.cs
- OutOfProcStateClientManager.cs
- MarkupCompilePass2.cs