Trigger object

Scripting object that provides the common properties that are inherited by all trigger objects.

Members

The Trigger object has these types of members:

Properties

The Trigger object has these properties.

Property Access type Description
Enabled
Read/write
Gets or sets a Boolean value that indicates whether the trigger is enabled.
EndBoundary
Read/write
Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.
ExecutionTimeLimit
Read/write
Gets or sets the maximum amount of time that the task launched by the trigger is allowed to run.
Id
Read/write
Gets or sets the identifier for the trigger.
Repetition
Read/write
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.
StartBoundary
Read/write
Gets or sets the date and time when the trigger is activated. The trigger can start the task after the trigger is activated.
Type
Gets the type of the trigger.

Remarks

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.

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]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

TriggerCollection