Click or drag to resize
Task Scheduler Managed Class Library

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.12.0
Syntax
C#
[DefaultValueAttribute(TaskInstancesPolicy.IgnoreNew)]
public enum TaskInstancesPolicy
Request Example
Members
Member nameValueDescription
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