title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TriggerCollection object (Windows.ui.xaml.h) |
Scripting object that is used to add to, remove from, and retrieve the triggers of a task. |
25d89451-48b6-4ed9-9abd-19d7e8bc1fea |
|
|
|
|
|
reference |
05/31/2018 |
Scripting object that is used to add to, remove from, and retrieve the triggers of a task.
The TriggerCollection object has these types of members:
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. |
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. |
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.
For more information and example code for this scripting object, see Time Trigger Example (Scripting).
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
Type library |
|
DLL |
|