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 / SessionSwitchEventArgs.cs / 1 / 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
- ApplicationSecurityManager.cs
- ConnectionPoint.cs
- XPathScanner.cs
- LostFocusEventManager.cs
- MediaElementAutomationPeer.cs
- ProvideValueServiceProvider.cs
- IChannel.cs
- Reference.cs
- EntityCommandExecutionException.cs
- SmtpAuthenticationManager.cs
- QuaternionRotation3D.cs
- StatusBarItem.cs
- VerificationAttribute.cs
- DescendentsWalker.cs
- SslStream.cs
- CalendarTable.cs
- CrossAppDomainChannel.cs
- Number.cs
- ProfileSection.cs
- CryptographicAttribute.cs
- SamlConditions.cs
- NotifyIcon.cs
- ValuePatternIdentifiers.cs
- DefaultTraceListener.cs
- IItemProperties.cs
- SecurityState.cs
- BCryptHashAlgorithm.cs
- PointAnimationClockResource.cs
- Regex.cs
- TimelineClockCollection.cs
- XmlWrappingReader.cs
- LogicalExpr.cs
- MemberAccessException.cs
- RegionIterator.cs
- InfoCardBaseException.cs
- TextTreeRootTextBlock.cs
- FixedDocumentSequencePaginator.cs
- FtpWebResponse.cs
- PeerNameRecord.cs
- XmlSchemaComplexContent.cs
- RuntimeHelpers.cs
- CatalogPartCollection.cs
- ListSortDescription.cs
- UnsafeNetInfoNativeMethods.cs
- FlagsAttribute.cs
- ArgumentDesigner.xaml.cs
- XmlSchemaParticle.cs
- RoutedEventValueSerializer.cs
- NonClientArea.cs
- ACL.cs
- Transform.cs
- Size3D.cs
- IIS7UserPrincipal.cs
- ApplicationSecurityManager.cs
- COM2PictureConverter.cs
- Metafile.cs
- RenderingBiasValidation.cs
- AppSecurityManager.cs
- LicenseException.cs
- UriParserTemplates.cs
- _ListenerResponseStream.cs
- FrameworkPropertyMetadata.cs
- BinHexDecoder.cs
- ItemAutomationPeer.cs
- ServiceParser.cs
- GridLength.cs
- WebAdminConfigurationHelper.cs
- SystemIPGlobalProperties.cs
- ComplexPropertyEntry.cs
- SqlRetyper.cs
- AssemblyNameEqualityComparer.cs
- AtomServiceDocumentSerializer.cs
- GroupLabel.cs
- ExpressionVisitor.cs
- HScrollBar.cs
- TreeNodeBindingDepthConverter.cs
- ImageFormat.cs
- NativeMethods.cs
- _NTAuthentication.cs
- AnnotationAuthorChangedEventArgs.cs
- Repeater.cs
- RoleGroupCollection.cs
- DbXmlEnabledProviderManifest.cs
- DBConcurrencyException.cs
- ConnectionInterfaceCollection.cs
- CompareInfo.cs
- ImageMapEventArgs.cs
- DetailsViewPageEventArgs.cs
- ArrayListCollectionBase.cs
- LeftCellWrapper.cs
- EventLogEntryCollection.cs
- DataGridLinkButton.cs
- RowSpanVector.cs
- ServiceManager.cs
- ReflectionUtil.cs
- ClockController.cs
- ListDictionary.cs
- ContextMenuAutomationPeer.cs
- ExeConfigurationFileMap.cs
- DataRecord.cs