Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the months of the year during which the task runs for a monthly schedule.
<xs:element name="Months"
type="monthsType"
/>
The Months element is defined by the monthlyScheduleType complex type.
Parent element
Element | Derived from | Description |
---|---|---|
ScheduleByMonth | monthlyScheduleType | Specifies a monthly schedule. |
Child elements
Element | Type | Description |
---|---|---|
April (monthsType) | Specifies that the task runs in April. |
|
August (monthsType) | Specifies that the task runs in August. |
|
December (monthsType) | Specifies that the task runs in December. |
|
February (monthsType) | Specifies that the task runs in February. |
|
January (monthsType) | Specifies that the task runs in January. |
|
July (monthsType) | Specifies that the task runs in July. |
|
June (monthsType) | Specifies that the task runs in June. |
|
March (monthsType) | Specifies that the task runs in March. |
|
May (monthsType) | Specifies that the task runs in May. |
|
November (monthsType) | Specifies that the task runs in November. |
|
October (monthsType) | Specifies that the task runs in October. |
|
September (monthsType) | Specifies that the task runs in September. |
Remarks
For script development, the months of the schedule are specified using the MonthlyTrigger.MonthsOfYear property.
For C++ development, the months of the schedule are specified using the IMonthlyTrigger::MonthsOfYear property.
Examples
The following XML defines a monthly calendar that starts the task on the 1st and 15th day of every month of the year.
</ScheduleByMonth>
<DaysOfMonth>
<Day>1</Day>
<Day>15</Day>
</DaysOfMonth
<Months>
<January/>
<February/>
<March/>
<April/>
<May/>
<June/>
<July/>
<August/>
<September/>
<October/>
<November/>
<December/>
<Months>
</ScheduleByMonth>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |