 | TaskState Enumeration |
Defines the different states that a registered task can be in.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
SyntaxPublic Enumeration TaskState
public enum class TaskState
Members
| Member name | Value | Description |
---|
| Unknown | 0 | The state of the task is unknown. |
| Disabled | 1 |
The task is registered but is disabled and no instances of the task are queued or running. The task cannot be run until it is enabled.
|
| Queued | 2 | Instances of the task are queued. |
| Ready | 3 | The task is ready to be executed, but no instances are queued or running. |
| Running | 4 | One or more instances of the task is running. |
See Also