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
- DiscoveryRequestHandler.cs
- RelatedPropertyManager.cs
- FactoryGenerator.cs
- OpenFileDialog.cs
- PanelDesigner.cs
- RadioButton.cs
- WriteableBitmap.cs
- DesignerActionGlyph.cs
- RelationshipEndMember.cs
- MexBindingBindingCollectionElement.cs
- DefaultClaimSet.cs
- DynamicUpdateCommand.cs
- TypeDescriptorContext.cs
- UidManager.cs
- PropertyRecord.cs
- HandlerBase.cs
- ListParagraph.cs
- RegexStringValidator.cs
- WindowsFormsLinkLabel.cs
- dataobject.cs
- BamlVersionHeader.cs
- FormView.cs
- ListComponentEditorPage.cs
- ISAPIWorkerRequest.cs
- DetailsViewRowCollection.cs
- TextElementEnumerator.cs
- UIElementParagraph.cs
- RegisteredExpandoAttribute.cs
- JoinGraph.cs
- SQLCharsStorage.cs
- RegexNode.cs
- DataSourceCacheDurationConverter.cs
- SubstitutionResponseElement.cs
- DBConnection.cs
- StructuredType.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RadioButtonPopupAdapter.cs
- RegexRunner.cs
- ScrollContentPresenter.cs
- ClockGroup.cs
- DefaultSettingsSection.cs
- State.cs
- HtmlInputCheckBox.cs
- VScrollProperties.cs
- SchemaTypeEmitter.cs
- ProxyGenerator.cs
- TableDetailsRow.cs
- DataTable.cs
- SystemIPGlobalProperties.cs
- BindingNavigator.cs
- NumberFunctions.cs
- XmlFileEditor.cs
- ContextBase.cs
- XmlUrlResolver.cs
- StrongNameSignatureInformation.cs
- TableAdapterManagerGenerator.cs
- WindowsContainer.cs
- Regex.cs
- ReturnValue.cs
- TimerEventSubscription.cs
- DatePickerDateValidationErrorEventArgs.cs
- ComContractElementCollection.cs
- MulticastNotSupportedException.cs
- XamlPathDataSerializer.cs
- AsnEncodedData.cs
- ConnectionManagementElementCollection.cs
- WmfPlaceableFileHeader.cs
- ChannelAcceptor.cs
- DataPagerCommandEventArgs.cs
- DateTimeConverter.cs
- XmlDeclaration.cs
- EncoderParameters.cs
- NameObjectCollectionBase.cs
- XmlLanguageConverter.cs
- InvokeWebService.cs
- ScrollItemPatternIdentifiers.cs
- Int32RectConverter.cs
- SchemaEntity.cs
- HttpHandlerActionCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- Rotation3DAnimationBase.cs
- OleDbCommandBuilder.cs
- SurrogateDataContract.cs
- ReaderContextStackData.cs
- PropertyEmitterBase.cs
- BlurEffect.cs
- StrokeCollection2.cs
- UriWriter.cs
- ObjectContext.cs
- TextEditorLists.cs
- WebControlsSection.cs
- SchemaImporterExtensionElement.cs
- RootProfilePropertySettingsCollection.cs
- DesignerAttribute.cs
- TextPenaltyModule.cs
- UpdatableWrapper.cs
- SplashScreen.cs
- ListBase.cs
- FixedFlowMap.cs
- Grant.cs