Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Vector3D.cs
- QilReference.cs
- XpsThumbnail.cs
- ItemCheckEvent.cs
- XmlWrappingReader.cs
- PenContexts.cs
- ResetableIterator.cs
- RestHandler.cs
- DefaultTraceListener.cs
- TextRangeBase.cs
- IsolationInterop.cs
- AttributeQuery.cs
- AsynchronousChannelMergeEnumerator.cs
- RichTextBox.cs
- ClassHandlersStore.cs
- TableParaClient.cs
- _BufferOffsetSize.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- AutoResetEvent.cs
- PersonalizationProvider.cs
- ListViewItemSelectionChangedEvent.cs
- RegexBoyerMoore.cs
- FrameDimension.cs
- RestClientProxyHandler.cs
- EnumValAlphaComparer.cs
- WebServiceErrorEvent.cs
- MatrixIndependentAnimationStorage.cs
- ScalarOps.cs
- EmptyEnumerator.cs
- formatter.cs
- WindowClosedEventArgs.cs
- DataGridAutomationPeer.cs
- KnownTypeDataContractResolver.cs
- SQLMoneyStorage.cs
- BeginSelectCardRequest.cs
- DataGridColumn.cs
- CodeArgumentReferenceExpression.cs
- ViewGenerator.cs
- DBSqlParserColumn.cs
- ScrollViewer.cs
- FileIOPermission.cs
- SiteMapDataSourceView.cs
- QilXmlReader.cs
- MasterPageCodeDomTreeGenerator.cs
- DataTableReader.cs
- Queue.cs
- BasePropertyDescriptor.cs
- HighContrastHelper.cs
- SemanticValue.cs
- FunctionNode.cs
- Padding.cs
- DictionaryTraceRecord.cs
- UnhandledExceptionEventArgs.cs
- UnmanagedBitmapWrapper.cs
- RuntimeHelpers.cs
- CodeCommentStatement.cs
- ToolboxItemWrapper.cs
- BevelBitmapEffect.cs
- TableRowGroupCollection.cs
- OdbcParameterCollection.cs
- CustomAttributeBuilder.cs
- EdmComplexPropertyAttribute.cs
- DetailsView.cs
- BitmapEffectInput.cs
- ExpressionBuilderCollection.cs
- ConversionContext.cs
- CompatibleComparer.cs
- PolygonHotSpot.cs
- ContextMenuStrip.cs
- DiagnosticTrace.cs
- TableLayout.cs
- ComboBox.cs
- XmlObjectSerializerReadContextComplexJson.cs
- SapiRecoContext.cs
- webeventbuffer.cs
- Rfc2898DeriveBytes.cs
- OutputScope.cs
- OciEnlistContext.cs
- ByteStream.cs
- Material.cs
- HyperLinkDataBindingHandler.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataGridViewControlCollection.cs
- Renderer.cs
- TextServicesCompartment.cs
- SqlUdtInfo.cs
- HtmlInputHidden.cs
- LoginUtil.cs
- PartialTrustVisibleAssembliesSection.cs
- SymbolType.cs
- SecurityDescriptor.cs
- HandleCollector.cs
- Literal.cs
- Choices.cs
- XmlSchemaElement.cs
- ReadWriteObjectLock.cs
- SizeConverter.cs
- DesigntimeLicenseContext.cs
- ConnectionPointCookie.cs
- NumericExpr.cs