TaskState Enumeration

Defines the different states that a registered task can be in.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public enum TaskState

Members

Unknown0The state of the task is unknown.
Disabled1 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.
Queued2Instances of the task are queued.
Ready3The task is ready to be executed, but no instances are queued or running.
Running4One or more instances of the task is running.

See Also