TriggerCollectionAddNew Method

Add a new trigger to the collections of triggers for the task.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public Trigger AddNew(
	TaskTriggerType taskTriggerType
)

Parameters

taskTriggerType  TaskTriggerType
The type of trigger to create.

Return Value

Trigger
A Trigger instance of the specified type.

See Also