Windows Dev Center

IBootTrigger interface

Represents a trigger that starts a task when the system is started.

Members

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

Properties

The IBootTrigger interface has these properties.

PropertyAccess typeDescription

Delay

Read/write

Gets or sets a value that indicates the amount of time between when the system is booted and when the task is started.

Enabled

Read/write

Inherited from the Trigger interface. Gets or sets a Boolean value that indicates whether the trigger is enabled.

EndBoundary

Read/write

Inherited from the Trigger interface. Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after the trigger is deactivated.

ExecutionTimeLimit

Read/write

Inherited from the Trigger interface. Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run.

Id

Read/write

Inherited from the Trigger interface. Gets or sets the identifier for the trigger.

Repetition

Read/write

Inherited from the Trigger interface. Gets or sets how often the task is run and how long the repetition pattern is repeated after the task is started.

StartBoundary

Read/write

Inherited from the Trigger interface. Gets or sets the date and time when the trigger is activated.

Type

Read-only

Inherited from the Trigger interface. Gets the type of trigger.

 

Remarks

The Task Scheduler service is started when the operating system is booted, and boot trigger tasks are set to start when the Task Scheduler service starts.

Only a member of the Administrators group can create a task with a boot trigger.

When creating your own XML for a task, a boot trigger is specified using the BootTrigger element of the Task Scheduler schema.

Examples

For more information and example code for this interface, see Boot 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

ITrigger
Task Scheduler Interfaces
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2015 Microsoft