 | 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.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic enum TaskInstancesPolicy
Public Enumeration TaskInstancesPolicy
public enum class TaskInstancesPolicy
Members
| Member name | Value | Description |
---|
| 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. |
See Also