Muokkaa

Jaa


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.

Method Description
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.

Property Access type Description
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

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

See also

Trigger