IWeeklyTrigger::put_DaysOfWeek method (taskschd.h)
Gets or sets the days of the week in which the task runs.
This property is read/write.
Syntax
HRESULT put_DaysOfWeek(
short days
);
Parameters
days
Return value
None
Remarks
The following table shows the mapping of the bitwise mask used by this property.
Month | Hex value | Decimal value |
---|---|---|
Sunday | 0X01 | 1 |
Monday | 0x02 | 2 |
Tuesday | 0X04 | 4 |
Wednesday | 0X08 | 8 |
Thursday | 0X10 | 16 |
Friday | 0x20 | 32 |
Saturday | 0X40 | 64 |
When reading or writing your own XML for a task, the days of the week are specified using the DaysOfWeek element of the Task Scheduler schema.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | taskschd.h |
Library | Taskschd.lib |
DLL | Taskschd.dll |