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;
///
/// Provides data for the event.
///
[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;
///
/// Initializes a new instance of the class.
///
public SessionSwitchEventArgs(SessionSwitchReason reason) {
this.reason = reason;
}
///
/// Gets the reason for the session switch.
///
public SessionSwitchReason Reason {
get {
return reason;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace Microsoft.Win32 {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[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;
///
/// Initializes a new instance of the class.
///
public SessionSwitchEventArgs(SessionSwitchReason reason) {
this.reason = reason;
}
///
/// Gets the reason for the session switch.
///
public SessionSwitchReason Reason {
get {
return reason;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListItemCollection.cs
- ObservableCollection.cs
- SR.cs
- KnownTypes.cs
- followingquery.cs
- DataPagerField.cs
- CornerRadius.cs
- SrgsElement.cs
- XsdCachingReader.cs
- ApplicationServicesHostFactory.cs
- SqlInfoMessageEvent.cs
- EntitySqlQueryCacheKey.cs
- Constant.cs
- MediaElement.cs
- LOSFormatter.cs
- CodeDelegateInvokeExpression.cs
- DetailsViewUpdatedEventArgs.cs
- HostExecutionContextManager.cs
- Code.cs
- TextElementCollectionHelper.cs
- SoapCommonClasses.cs
- CodeCommentStatement.cs
- CorrelationToken.cs
- GC.cs
- Overlapped.cs
- CodeDomSerializerException.cs
- FormattedTextSymbols.cs
- ZoneLinkButton.cs
- Helpers.cs
- _KerberosClient.cs
- BasicCommandTreeVisitor.cs
- TextLineBreak.cs
- HandlerElementCollection.cs
- ReaderWriterLock.cs
- COM2TypeInfoProcessor.cs
- WebPart.cs
- MultiSelectRootGridEntry.cs
- StaticFileHandler.cs
- ColorTransform.cs
- cookiecollection.cs
- EventEntry.cs
- DataGridColumnHeaderCollection.cs
- CollectionBase.cs
- DataGridItemEventArgs.cs
- HttpHandler.cs
- FieldBuilder.cs
- SettingsPropertyValueCollection.cs
- GAC.cs
- SettingsContext.cs
- DependencyPropertyChangedEventArgs.cs
- MouseCaptureWithinProperty.cs
- WinInet.cs
- SuppressMessageAttribute.cs
- HtmlMeta.cs
- SHA1.cs
- InputProcessorProfilesLoader.cs
- NotifyInputEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- TriggerCollection.cs
- ItemContainerPattern.cs
- XPathDescendantIterator.cs
- ComAdminWrapper.cs
- SqlDataSourceCommandEventArgs.cs
- QueryExpression.cs
- Thread.cs
- Padding.cs
- MissingFieldException.cs
- HttpModuleAction.cs
- CryptoApi.cs
- ToolboxComponentsCreatedEventArgs.cs
- PageCodeDomTreeGenerator.cs
- ServiceSecurityAuditElement.cs
- FtpWebResponse.cs
- IsolatedStorage.cs
- SafeFindHandle.cs
- CompiledQuery.cs
- LocalClientSecuritySettings.cs
- SystemUnicastIPAddressInformation.cs
- HostedTcpTransportManager.cs
- XmlSchemaComplexType.cs
- ContentTextAutomationPeer.cs
- ListViewGroup.cs
- AnnotationResource.cs
- HtmlTextArea.cs
- ArraySegment.cs
- DateTimeUtil.cs
- PeerObject.cs
- HwndSourceKeyboardInputSite.cs
- DataGridRowHeader.cs
- DataObjectSettingDataEventArgs.cs
- ContextStack.cs
- DataBindingCollection.cs
- XPathNodeIterator.cs
- EntityContainer.cs
- WindowsAltTab.cs
- Pair.cs
- XmlILModule.cs
- SiteMembershipCondition.cs
- DbLambda.cs
- RootCodeDomSerializer.cs