TaskInstancesPolicy Enumeration

Defines how the Task Scheduler handles existing instances of the task when it starts a new instance of the task.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(TaskInstancesPolicy.IgnoreNew)]
public enum TaskInstancesPolicy

Members

Parallel0Starts new instance while an existing instance is running.
Queue1Starts a new instance of the task after all other instances of the task are complete.
IgnoreNew2Does not start a new instance if an existing instance of the task is running.
StopExisting3Stops an existing instance of the task before it starts a new instance.

See Also