 | TaskSessionStateChangeType Enumeration |
Defines what kind of Terminal Server session state change you can use to trigger a task to start. These changes are used to specify
the type of state change in the SessionStateChangeTrigger.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic enum TaskSessionStateChangeType
Public Enumeration TaskSessionStateChangeType
public enum class TaskSessionStateChangeType
Members
| Member name | Value | Description |
---|
| ConsoleConnect | 1 |
Terminal Server console connection state change. For example, when you connect to a user session on the local computer by
switching users on the computer.
|
| ConsoleDisconnect | 2 |
Terminal Server console disconnection state change. For example, when you disconnect to a user session on the local computer by
switching users on the computer.
|
| RemoteConnect | 3 |
Terminal Server remote connection state change. For example, when a user connects to a user session by using the Remote Desktop
Connection program from a remote computer.
|
| RemoteDisconnect | 4 |
Terminal Server remote disconnection state change. For example, when a user disconnects from a user session while using the
Remote Desktop Connection program from a remote computer.
|
| SessionLock | 7 |
Terminal Server session locked state change. For example, this state change causes the task to run when the computer is locked.
|
| SessionUnlock | 8 |
Terminal Server session unlocked state change. For example, this state change causes the task to run when the computer is unlocked.
|
See Also