Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / Microsoft / Win32 / SessionSwitchEventArgs.cs / 1305376 / SessionSwitchEventArgs.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 SessionSwitchEventArgs : EventArgs { private readonly SessionSwitchReason reason; ///Provides data for the ///event. /// public SessionSwitchEventArgs(SessionSwitchReason reason) { this.reason = reason; } ///Initializes a new instance of the ///class. /// public SessionSwitchReason Reason { get { return reason; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the reason for the session switch. ///// 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 SessionSwitchEventArgs : EventArgs { private readonly SessionSwitchReason reason; ///Provides data for the ///event. /// public SessionSwitchEventArgs(SessionSwitchReason reason) { this.reason = reason; } ///Initializes a new instance of the ///class. /// public SessionSwitchReason Reason { get { return reason; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the reason for the session switch. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoleManagerSection.cs
- DataGridViewLinkCell.cs
- TypeConverter.cs
- TextCompositionEventArgs.cs
- SaveFileDialog.cs
- RequestTimeoutManager.cs
- PassportPrincipal.cs
- Line.cs
- Registry.cs
- GridViewCellAutomationPeer.cs
- DocumentViewer.cs
- PreviewKeyDownEventArgs.cs
- RC2CryptoServiceProvider.cs
- XmlQuerySequence.cs
- LinqDataSourceContextEventArgs.cs
- FileResponseElement.cs
- NodeFunctions.cs
- CancellableEnumerable.cs
- _ScatterGatherBuffers.cs
- ExceptionRoutedEventArgs.cs
- ListDictionary.cs
- AutomationIdentifier.cs
- CharEnumerator.cs
- TypeForwardedToAttribute.cs
- ScriptingRoleServiceSection.cs
- UnsafeNativeMethodsTablet.cs
- SparseMemoryStream.cs
- WebPartZoneCollection.cs
- DataBoundControlAdapter.cs
- TextProperties.cs
- Bitmap.cs
- InternalDispatchObject.cs
- HScrollProperties.cs
- CodeBlockBuilder.cs
- KeyConstraint.cs
- Ppl.cs
- WindowsFormsLinkLabel.cs
- PermissionSet.cs
- CheckedListBox.cs
- TextPointer.cs
- ProfessionalColors.cs
- PerfCounters.cs
- SimpleRecyclingCache.cs
- ClientTargetCollection.cs
- RawStylusInputReport.cs
- SecurityHeader.cs
- RootBrowserWindowAutomationPeer.cs
- TextElementAutomationPeer.cs
- QuarticEase.cs
- EncryptedPackageFilter.cs
- PolicyVersion.cs
- Model3DGroup.cs
- NonVisualControlAttribute.cs
- FrameworkTemplate.cs
- AffineTransform3D.cs
- COM2PictureConverter.cs
- MetadataItem.cs
- ConsumerConnectionPoint.cs
- CorrelationRequestContext.cs
- XmlAtomicValue.cs
- SqlRetyper.cs
- DataSourceControl.cs
- ColumnResizeAdorner.cs
- RtfToXamlLexer.cs
- TrailingSpaceComparer.cs
- BitmapData.cs
- XDeferredAxisSource.cs
- RawStylusInputCustomData.cs
- SqlFormatter.cs
- XPathNavigator.cs
- ProxyAttribute.cs
- ProcessThreadDesigner.cs
- PageAdapter.cs
- DataServiceQueryProvider.cs
- DirectionalLight.cs
- DataColumnMappingCollection.cs
- followingquery.cs
- EarlyBoundInfo.cs
- GenericTypeParameterConverter.cs
- webproxy.cs
- TextTreePropertyUndoUnit.cs
- TableLayoutPanel.cs
- DynamicQueryableWrapper.cs
- RelationshipManager.cs
- TraceHandlerErrorFormatter.cs
- WorkflowDesigner.cs
- RewritingSimplifier.cs
- TreeNodeBinding.cs
- RegistryKey.cs
- NativeMethods.cs
- PropertyMapper.cs
- LineVisual.cs
- GlyphRunDrawing.cs
- NativeMethods.cs
- BitConverter.cs
- ToolStripDropDownClosedEventArgs.cs
- RowToParametersTransformer.cs
- SAPICategories.cs
- ConfigurationStrings.cs
- SqlMetaData.cs