This documentation is archived and is not being maintained.
SessionChangeReason Enumeration
Visual Studio 2010
Specifies the reason for a Terminal Services session change notice.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
| Member name | Description | |
|---|---|---|
| ConsoleConnect | A console session has connected. | |
| ConsoleDisconnect | A console session has disconnected. | |
| RemoteConnect | A remote session has connected. | |
| RemoteDisconnect | A remote session has disconnected. | |
| SessionLogon | A user has logged on to a session. | |
| SessionLogoff | A user has logged off from a session. | |
| SessionLock | A session has been locked. | |
| SessionUnlock | A session has been unlocked. | |
| SessionRemoteControl | The remote control status of a session has changed. |
The following code example shows the use of the SessionChangeReason enumeration in an implementation of the OnSessionChange method in a class derived from ServiceBase. This code example is part of a larger example provided for the ServiceBase class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: