Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SessionSwitchReason Enumeration

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

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

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft