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
- HeaderElement.cs
- BlurEffect.cs
- ListBase.cs
- CodeChecksumPragma.cs
- SessionStateItemCollection.cs
- EmptyCollection.cs
- UshortList2.cs
- XmlWrappingReader.cs
- DropTarget.cs
- LicenseContext.cs
- HtmlProps.cs
- HwndSubclass.cs
- OdbcException.cs
- ConsumerConnectionPoint.cs
- SymmetricSecurityProtocolFactory.cs
- StreamUpdate.cs
- InvalidOleVariantTypeException.cs
- WebResourceAttribute.cs
- FrameworkTemplate.cs
- TransactionFlowBindingElementImporter.cs
- BrowserTree.cs
- NetPeerTcpBindingCollectionElement.cs
- HttpChannelBindingToken.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ExpressionBindingsDialog.cs
- Screen.cs
- DataGridViewControlCollection.cs
- ScriptBehaviorDescriptor.cs
- XmlDocumentFieldSchema.cs
- HttpRequest.cs
- RequestSecurityTokenResponseCollection.cs
- DrawingContextWalker.cs
- SendMessageRecord.cs
- AssemblyAssociatedContentFileAttribute.cs
- StylusPointProperties.cs
- EntityDataSourceValidationException.cs
- DataAdapter.cs
- webbrowsersite.cs
- WebPartHeaderCloseVerb.cs
- Object.cs
- LiteralControl.cs
- TabItem.cs
- TextEditorTyping.cs
- UICuesEvent.cs
- SafeFileMapViewHandle.cs
- COM2PictureConverter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- HttpsChannelListener.cs
- ObjectNavigationPropertyMapping.cs
- remotingproxy.cs
- TypeUtils.cs
- ThreadExceptionDialog.cs
- DocumentPageView.cs
- HwndHost.cs
- ThemeDirectoryCompiler.cs
- FormClosingEvent.cs
- PartialTrustHelpers.cs
- CacheForPrimitiveTypes.cs
- SqlVisitor.cs
- ListViewItemEventArgs.cs
- Walker.cs
- ScriptMethodAttribute.cs
- IMembershipProvider.cs
- EpmContentDeSerializerBase.cs
- StateDesigner.CommentLayoutGlyph.cs
- InternalConfigEventArgs.cs
- TraceSection.cs
- RuleSetBrowserDialog.cs
- ScrollItemPatternIdentifiers.cs
- WindowInteropHelper.cs
- Number.cs
- IssuedSecurityTokenParameters.cs
- BuildResult.cs
- ConvertBinder.cs
- ButtonChrome.cs
- AccessedThroughPropertyAttribute.cs
- GenericRootAutomationPeer.cs
- DragStartedEventArgs.cs
- ConfigurationStrings.cs
- BindableTemplateBuilder.cs
- SystemIcmpV4Statistics.cs
- OdbcHandle.cs
- CmsInterop.cs
- ImageSource.cs
- SHA384.cs
- DictionarySectionHandler.cs
- AuthenticatedStream.cs
- DoubleCollection.cs
- path.cs
- DragEventArgs.cs
- ConvertBinder.cs
- TabletCollection.cs
- LambdaExpression.cs
- XmlSchemaInfo.cs
- SmiConnection.cs
- FixedSOMLineRanges.cs
- ObjectPropertyMapping.cs
- Assembly.cs
- wgx_commands.cs
- DashStyle.cs