title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Months (monthlyDayOfWeekScheduleType) Element |
Specifies the months of the year during which the task runs for a monthly day-of-week schedule. |
420fa7f4-7106-483e-9b3b-d1ba51f25222 |
|
|
|
|
reference |
05/31/2018 |
Specifies the months of the year during which the task runs for a monthly day-of-week schedule.
<xs:element name="Months"
type="monthsType"
/>
The Months element is defined by the monthlyDayOfWeekScheduleType complex type.
Element | Derived from | Description |
---|---|---|
ScheduleByMonthDayOfWeek (calendarTriggerType) | monthlyDayOfWeekScheduleType | Specifies a trigger that starts a job for a monthly day-of-week schedule. |
Element | Type | Description |
---|---|---|
April | Specifies that the task runs in April. |
|
August | Specifies that the task runs in August. |
|
December | Specifies that the task runs in December. |
|
February | Specifies that the task runs in February. |
|
January | Specifies that the task runs in January. |
|
July | Specifies that the task runs in July. |
|
June | Specifies that the task runs in June. |
|
March | Specifies that the task runs in March. |
|
May | Specifies that the task runs in May. |
|
November | Specifies that the task runs in November. |
|
October | Specifies that the task runs in October. |
|
September | Specifies that the task runs in September. |
For scripting development, the months of a year for a monthly day-of-week schedule are specified using the MonthlyDOWTrigger.MonthsOfYear property.
For C++ development, the months of a year for a monthly day-of-week schedule are specified using the IMonthlyDOWTrigger::MonthsOfYear property.
The child elements above are defined by the monthsType complex type.
The following XML defines a monthly day-of-week calendar that starts the task on Monday of the first week for each month of the year.
<ScheduleByMonthDayOfWeek>
<Weeks>
<Week>1</Week>
</Weeks>
<DaysOfWeek>
<Monday/>
</DaysOfWeek>
<Months>
<January/>
<February/>
<March/>
<April/>
<May/>
<June/>
<July/>
<August/>
<September/>
<October/>
<November/>
<December/>
<Months>
</ScheduleByMonthDayOfWeek>
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |