TriggerCollection object

Scripting object that is used to add to, remove from, and retrieve the triggers of a task.

Members

The TriggerCollection object has these types of members:

Methods

The TriggerCollection object has these methods.

MethodDescription
Clear

Clears all triggers from the collection.

Create

Creates a new trigger for the task.

Remove

Removes the specified trigger from the collection of triggers used by the task.

 

Properties

The TriggerCollection object has these properties.

PropertyAccess typeDescription

Count

Read-only

Gets the number of triggers in the collection.

Item

Read-only

Gets the specified trigger from the collection.

 

Remarks

When reading or writing XML for a task, the triggers for the task are specified in the Triggers element of the Task Scheduler schema.

For information about each trigger type see Trigger Types.

Examples

For more information and example code for this scripting object, see Time Trigger Example (Scripting).

Requirements

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

Trigger

 

 

Community Additions

ADD
Show:
© 2014 Microsoft