IMonthlyTrigger interface (taskschd.h)

Represents a trigger that starts a job based on a monthly schedule. For example, the task starts on specific days of specific months.

Inheritance

The IMonthlyTrigger interface inherits from the ITrigger interface.

Methods

The IMonthlyTrigger interface has these methods.

 
IMonthlyTrigger::get_DaysOfMonth

Gets or sets the days of the month during which the task runs. (Get)
IMonthlyTrigger::get_MonthsOfYear

Gets or sets the months of the year during which the task runs. (IMonthlyTrigger.get_MonthsOfYear)
IMonthlyTrigger::get_RandomDelay

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

Gets or sets a Boolean value that indicates that the task runs on the last day of the month. (Get)
IMonthlyTrigger::put_DaysOfMonth

Gets or sets the days of the month during which the task runs. (Put)
IMonthlyTrigger::put_MonthsOfYear

Gets or sets the months of the year during which the task runs. (IMonthlyTrigger.put_MonthsOfYear)
IMonthlyTrigger::put_RandomDelay

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

Gets or sets a Boolean value that indicates that the task runs on the last day of the month. (Put)

Remarks

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

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

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

Task Scheduler Interfaces