IDailyTrigger interface (taskschd.h)

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.

Inheritance

The IDailyTrigger interface inherits from the ITrigger interface.

Methods

The IDailyTrigger interface has these methods.

 
IDailyTrigger::get_DaysInterval

Gets or sets the interval between the days in the schedule. (Get)
IDailyTrigger::get_RandomDelay

Gets or sets a delay time that is randomly added to the start time of the trigger. (IDailyTrigger.get_RandomDelay)
IDailyTrigger::put_DaysInterval

Gets or sets the interval between the days in the schedule. (Put)
IDailyTrigger::put_RandomDelay

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

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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h

See also

ITrigger

ITriggerCollection

ITriggerCollection::Create

Task Scheduler Interfaces