Microsoft.Win32.SessionSwitchReason Enumeration

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

Syntax

public enum SessionSwitchReason

Remarks

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

Members

Member NameDescription
ConsoleConnect

A session has been connected from the console.

ConsoleDisconnect

A session has been disconnected from the console.

RemoteConnect

A session has been connected from a remote connection.

RemoteDisconnect

A session has been disconnected from a remote connection.

SessionLock

A session has been locked.

SessionLogoff

A user has logged off from a session.

SessionLogon

A user has logged on to a session.

SessionRemoteControl

A session has changed its status to or from remote controlled mode.

SessionUnlock

A session has been unlocked.

Requirements

Namespace: Microsoft.Win32
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0