Expand Minimize

Months (monthlyDayOfWeekScheduleType) Element

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.

Parent element

ElementDerived fromDescription
ScheduleByMonthDayOfWeek (calendarTriggerType) monthlyDayOfWeekScheduleType

Specifies a trigger that starts a job for a monthly day-of-week schedule.

Child elements

ElementTypeDescription
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.

Remarks

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.

Examples

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>


Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

See also

Task Scheduler Schema Elements
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft