Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Represents a trigger that starts a task based on a weekly schedule. For example, the task starts at 8:00 A.M. on a specific day of the week every week or every other week.
Inheritance
The IWeeklyTrigger interface inherits from the ITrigger interface.
Methods
The IWeeklyTrigger interface has these methods.
| IWeeklyTrigger::get_DaysOfWeek Gets or sets the days of the week in which the task runs. (Get) |
| IWeeklyTrigger::get_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IWeeklyTrigger.get_RandomDelay) |
| IWeeklyTrigger::get_WeeksInterval Gets or sets the interval between the weeks in the schedule. (Get) |
| IWeeklyTrigger::put_DaysOfWeek Gets or sets the days of the week in which the task runs. (Put) |
| IWeeklyTrigger::put_RandomDelay Gets or sets a delay time that is randomly added to the start time of the trigger. (IWeeklyTrigger.put_RandomDelay) |
| IWeeklyTrigger::put_WeeksInterval Gets or sets the interval between the weeks in the schedule. (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 weekly trigger is specified using the ScheduleByWeek 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 |