Export (0) Print
Expand All

IDailyTrigger interface

Represents a trigger that starts a task based on a daily schedule. For example, the task starts at a specific time every day, every other day, every third day, and so on.

Members

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

Properties

The IDailyTrigger interface has these properties.

PropertyAccess typeDescription

DaysInterval

Read/write

Sets or retrieves the interval between the days in the schedule.

Enabled

Read/write

Inherited from the ITrigger interface. Sets or retrieves a Boolean value that indicates whether the trigger is enabled.

EndBoundary

Read/write

Inherited from the ITrigger interface. Sets or retrieves the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.

ExecutionTimeLimit

Read/write

Inherited from the ITrigger 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 ITrigger interface. Sets or retrieves the identifier for the trigger.

RandomDelay

Read/write

Gets or sets a delay time that is randomly added to the start time of the trigger.

Repetition

Read/write

Inherited from the ITrigger interface. Sets or retrieves 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 ITrigger interface. Sets or retrieves the date and time when the trigger is activated.

Type

Read-only

Inherited from the ITrigger interface. Retrieves the type of the trigger.

 

Remarks

The time of day that the task is started is set by the StartBoundary property.

An interval of 1 produces a daily schedule. An interval of 2 produces an every other day schedule and so on.

When reading or writing your own XML for a task, a daily trigger is specified using the ScheduleByDay element of the Task Scheduler schema.

Examples

For more information and example code for this interface, see Daily 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
ITriggerCollection
ITriggerCollection::Create

 

 

Community Additions

ADD
Show:
© 2015 Microsoft