IMonthlyTrigger::DaysOfMonth property

Gets or sets the days of the month during which the task runs.

This property is read/write.

Syntax


HRESULT put_DaysOfMonth(
  [in]   long days
);

HRESULT get_DaysOfMonth(
  [out]  long *pDays
);

Property value

A bitwise mask that indicates the days of the month during which the task runs.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Remarks

Day of monthHex valueDecimal value
10x011
20x022
30x044
40x088
50x1016
60x2032
70x4064
80x80128
90x100256
100x200512
110x4001024
120x8002048
130x10004096
140x20008192
150x400016384
160x800032768
170x1000065536
180x20000131072
190x40000262144
200x80000524288
210x1000001048576
220x2000002097152
230x4000004194304
240x8000008388608
250x100000016777216
260x200000033554432
270x400000067108864
280x8000000134217728
290x10000000268435456
300x20000000536870912
310x400000001073741824
Last0x800000002147483648

 

When reading or writing your own XML for a task, the days of the month are specified using the DaysOfMonth 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
IMonthlyTrigger

 

 

Community Additions

ADD
Show:
© 2014 Microsoft