Windows Dev Center

IMonthlyDOWTrigger::MonthsOfYear property

Gets or sets the months of the year during which the task runs.

This property is read/write.

Syntax


HRESULT put_MonthsOfYear(
  [in]  short months
);

HRESULT get_MonthsOfYear(
  [out] short *pMonths
);

Property value

A bitwise mask that indicates the months of the year during which the task runs.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Remarks

The following table shows the mapping of the bitwise mask used by this property.

MonthHex valueDecimal value
January0X011
February0x022
March0X044
April0X088
May0X1016
June0X2032
July0x4064
August0X80128
September0X100256
October0X200512
November0X4001024
December0X8002048

 

When reading or writing XML for a task, the months of the year of a monthly day-of-week calendar are specified by the Months element of the Task Scheduler schema.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler
IMonthlyDOWTrigger

 

 

Community Additions

ADD
Show:
© 2015 Microsoft