IMonthlyDOWTrigger interface (taskschd.h)
Represents a trigger that starts a task on a monthly day-of-week schedule. For example, the task starts on every first Thursday, May through October.
Inheritance
The IMonthlyDOWTrigger interface inherits from the ITrigger interface.
Methods
The IMonthlyDOWTrigger interface has these methods.
IMonthlyDOWTrigger::get_DaysOfWeek Gets or sets the days of the week during which the task runs. (Get) |
IMonthlyDOWTrigger::get_MonthsOfYear Gets or sets the months of the year during which the task runs. (IMonthlyDOWTrigger.get_MonthsOfYear) |
IMonthlyDOWTrigger::get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IMonthlyDOWTrigger.get_RandomDelay) |
IMonthlyDOWTrigger::get_RunOnLastWeekOfMonth Gets or sets a Boolean value that indicates that the task runs on the last week of the month. (Get) |
IMonthlyDOWTrigger::get_WeeksOfMonth Gets or sets the weeks of the month during which the task runs. (Get) |
IMonthlyDOWTrigger::put_DaysOfWeek Gets or sets the days of the week during which the task runs. (Put) |
IMonthlyDOWTrigger::put_MonthsOfYear Gets or sets the months of the year during which the task runs. (IMonthlyDOWTrigger.put_MonthsOfYear) |
IMonthlyDOWTrigger::put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IMonthlyDOWTrigger.put_RandomDelay) |
IMonthlyDOWTrigger::put_RunOnLastWeekOfMonth Gets or sets a Boolean value that indicates that the task runs on the last week of the month. (Put) |
IMonthlyDOWTrigger::put_WeeksOfMonth Gets or sets the weeks of the month during which the task runs. (Put) |
Remarks
The time of day that the task is started is set by the StartBoundary property.
When reading or writing XML for a task, a monthly day-of-week trigger is specified using the ScheduleByMonthDayOfWeek 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 |