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
- MailDefinition.cs
- TimeSpan.cs
- DataGridViewCellCollection.cs
- ExpressionParser.cs
- CustomAssemblyResolver.cs
- Utility.cs
- KeyedCollection.cs
- ListView.cs
- XPathNavigatorKeyComparer.cs
- MetadataUtil.cs
- EncryptionUtility.cs
- Errors.cs
- MetafileHeaderWmf.cs
- TextContainerHelper.cs
- WrappedIUnknown.cs
- ContextMenuAutomationPeer.cs
- TextServicesPropertyRanges.cs
- SQLMoneyStorage.cs
- ImageCollectionCodeDomSerializer.cs
- ShapingWorkspace.cs
- SqlAliasesReferenced.cs
- RepeatBehavior.cs
- WebPartMenu.cs
- XamlTreeBuilderBamlRecordWriter.cs
- TcpTransportSecurityElement.cs
- SizeValueSerializer.cs
- TextInfo.cs
- XmlEntityReference.cs
- DataGridPagingPage.cs
- MembershipPasswordException.cs
- EntityProxyTypeInfo.cs
- DescendentsWalker.cs
- TypeLoadException.cs
- CellTreeNodeVisitors.cs
- CompilationUtil.cs
- MailWebEventProvider.cs
- CompilationSection.cs
- TextChange.cs
- SpellerHighlightLayer.cs
- PenThread.cs
- AutomationProperty.cs
- XmlAttributeHolder.cs
- RegularExpressionValidator.cs
- FlatButtonAppearance.cs
- AbstractExpressions.cs
- PageRanges.cs
- DbBuffer.cs
- MenuItemBindingCollection.cs
- SchemaCollectionPreprocessor.cs
- MarkupObject.cs
- AnnotationComponentManager.cs
- DesignerLinkAdapter.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- UserControl.cs
- ProtocolsConfigurationEntry.cs
- ViewGenerator.cs
- TypeInformation.cs
- MouseActionValueSerializer.cs
- KeyValuePair.cs
- AuthenticationSection.cs
- CalendarTable.cs
- SmiGettersStream.cs
- PropertyStore.cs
- DependencyObjectProvider.cs
- TypeGenericEnumerableViewSchema.cs
- TagPrefixInfo.cs
- ReflectionUtil.cs
- TextTreeInsertUndoUnit.cs
- TypedAsyncResult.cs
- TypeDependencyAttribute.cs
- Convert.cs
- EnvironmentPermission.cs
- BehaviorEditorPart.cs
- DeleteIndexBinder.cs
- ImportContext.cs
- DoubleCollectionConverter.cs
- TiffBitmapDecoder.cs
- MimeTextImporter.cs
- OpenTypeMethods.cs
- ResolvedKeyFrameEntry.cs
- GcHandle.cs
- ObjectIDGenerator.cs
- PartialCachingAttribute.cs
- ZipFileInfo.cs
- RelatedCurrencyManager.cs
- ModuleConfigurationInfo.cs
- TextSearch.cs
- AssemblyNameProxy.cs
- DesignColumnCollection.cs
- GridViewUpdatedEventArgs.cs
- InvariantComparer.cs
- DecoderReplacementFallback.cs
- precedingquery.cs
- MarshalDirectiveException.cs
- ColumnReorderedEventArgs.cs
- ArraySortHelper.cs
- XmlDownloadManager.cs
- BitmapImage.cs
- RTLAwareMessageBox.cs
- WebPartConnectionsConnectVerb.cs