Export (0) Print
Expand All

SessionSwitchReason Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

Defines identifiers used to represent the type of a session switch event.

Namespace: Microsoft.Win32
Assembly: System (in system.dll)

'Declaration
Public Enumeration SessionSwitchReason
'Usage
Dim instance As SessionSwitchReason

public enum SessionSwitchReason
public enum SessionSwitchReason

 Member nameDescription
ConsoleConnectA session has been connected from the console. 
ConsoleDisconnectA session has been disconnected from the console. 
RemoteConnectA session has been connected from a remote connection. 
RemoteDisconnectA session has been disconnected from a remote connection. 
SessionLockA session has been locked. 
SessionLogoffA user has logged off from a session. 
SessionLogonA user has logged on to a session. 
SessionRemoteControlA session has changed its status to or from remote controlled mode. 
SessionUnlockA session has been unlocked. 

The SessionSwitchEventArgs class uses the SessionSwitchReason class to represent the type of a session switch event.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft