Scripting object that provides the common properties that are inherited by all trigger objects.
The Trigger object has these types of members:
The Trigger object has these properties.
||Gets or sets a Boolean value that indicates whether the trigger is enabled.
||Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.
||Gets or sets the maximum amount of time that the task launched by the trigger is allowed to run.
||Gets or sets the identifier for the trigger.
||Gets or sets a value that indicates how often the task is run and how long the repetition pattern is repeated after the task is started.
||Gets or sets the date and time when the trigger is activated. The trigger can start the task after the trigger is activated.
||Gets the type of the trigger.
The Task Scheduler provides the following individual objects for the different triggers that a task can use:
When reading or writing XML, the triggers of a task are specified in the Triggers element of the Task Scheduler schema.
For more information and example code for this scripting object, see Time Trigger Example (Scripting).
|Minimum supported client
||Windows Vista [desktop apps only]
|Minimum supported server
||Windows Server 2008 [desktop apps only]