TriggerCollection.Remove method

For scripting, removes the specified trigger from the collection of triggers used by the task.

Syntax

TriggerCollection.Remove( _
  ByVal index _
)

Parameters

index [in]

The index of the trigger to be removed.

Return value

This method does not return a value.

Remarks

When removing items, note that the index for the first item in the collection is 1 and the index for the last item is the value of the TriggerCollection.Count property.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

Task Scheduler