ITrigger interface

Provides the common properties that are inherited by all trigger objects.

Members

The ITrigger interface inherits from the IDispatch interface. ITrigger also has these types of members:

Properties

The ITrigger interface has these properties.

PropertyAccess typeDescription

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 this 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.

Type

Read-only

Gets the type of the trigger.

 

Remarks

Task Scheduler provides the following individual interfaces 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 interface, see Time Trigger Example (C++).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler Interfaces
Task Scheduler
ITriggerCollection

 

 

Show: