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
- RedBlackList.cs
- WmlTextBoxAdapter.cs
- IPGlobalProperties.cs
- LookupNode.cs
- UnsafeNetInfoNativeMethods.cs
- XMLDiffLoader.cs
- AuthenticodeSignatureInformation.cs
- GridViewRow.cs
- MappingItemCollection.cs
- EncoderFallback.cs
- MessageSmuggler.cs
- RenderOptions.cs
- Viewport3DAutomationPeer.cs
- DigitalSignatureProvider.cs
- CfgParser.cs
- FilterElement.cs
- XmlCompatibilityReader.cs
- ProfileGroupSettings.cs
- DataSourceNameHandler.cs
- SecureStringHasher.cs
- NetMsmqSecurityElement.cs
- NullReferenceException.cs
- WindowsFormsSynchronizationContext.cs
- IgnoreFileBuildProvider.cs
- HotSpotCollection.cs
- ButtonRenderer.cs
- AudioStateChangedEventArgs.cs
- Compress.cs
- RIPEMD160.cs
- CollectionEditor.cs
- BamlReader.cs
- ItemMap.cs
- IMembershipProvider.cs
- PersonalizationStateQuery.cs
- ItemCollection.cs
- MouseGesture.cs
- SmiEventStream.cs
- MultipleViewProviderWrapper.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- NativeMethodsCLR.cs
- IdleTimeoutMonitor.cs
- RenderingEventArgs.cs
- QilCloneVisitor.cs
- HwndHostAutomationPeer.cs
- ProfileParameter.cs
- ScalarType.cs
- AdornerDecorator.cs
- BrushValueSerializer.cs
- RelationshipWrapper.cs
- BrowserCapabilitiesFactory.cs
- TargetInvocationException.cs
- AdRotator.cs
- SqlRecordBuffer.cs
- ImageButton.cs
- PenContexts.cs
- Token.cs
- MultiPageTextView.cs
- EntityDataSourceState.cs
- DesignerSerializationManager.cs
- ForceCopyBuildProvider.cs
- TypeSource.cs
- Sql8ConformanceChecker.cs
- ClientSponsor.cs
- WindowsFormsSectionHandler.cs
- Paragraph.cs
- RowVisual.cs
- ProgressBar.cs
- SoapReflectionImporter.cs
- infer.cs
- MergeFailedEvent.cs
- AppearanceEditorPart.cs
- DynamicDiscoveryDocument.cs
- ListViewEditEventArgs.cs
- EntityViewGenerationConstants.cs
- XhtmlBasicPageAdapter.cs
- DrawingCollection.cs
- AnimationException.cs
- XmlMapping.cs
- LicFileLicenseProvider.cs
- DocumentGridContextMenu.cs
- OleDbParameter.cs
- SignatureResourcePool.cs
- ServiceOperationWrapper.cs
- DataTableReaderListener.cs
- ComboBoxHelper.cs
- HostingPreferredMapPath.cs
- UIElementPropertyUndoUnit.cs
- FormViewModeEventArgs.cs
- SqlFlattener.cs
- InfiniteTimeSpanConverter.cs
- TagPrefixAttribute.cs
- XmlNodeReader.cs
- ProxyGenerator.cs
- EmptyStringExpandableObjectConverter.cs
- Renderer.cs
- ActivityMarkupSerializer.cs
- ListViewItem.cs
- HandleDictionary.cs
- Columns.cs
- WindowsGraphics2.cs