TriggerCollectionAddTTrigger Method

Add an unbound Trigger to the task.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public TTrigger Add<TTrigger>(
	TTrigger unboundTrigger
)
where TTrigger : Trigger

Parameters

unboundTrigger  TTrigger
Trigger derivative to add to the task.

Type Parameters

TTrigger
A type derived from Trigger.

Return Value

TTrigger
Bound trigger.

Exceptions

ArgumentNullExceptionunboundTrigger is null.

See Also