TaskInstancesPolicy Enumeration
Defines how the Task Scheduler handles existing instances of the task when it starts a new instance of the task.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(TaskInstancesPolicy.IgnoreNew)]
public enum TaskInstancesPolicy
Parallel | 0 | Starts new instance while an existing instance is running. |
Queue | 1 | Starts a new instance of the task after all other instances of the task are complete. |
IgnoreNew | 2 | Does not start a new instance if an existing instance of the task is running. |
StopExisting | 3 | Stops an existing instance of the task before it starts a new instance. |