UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:taskschd.IMonthlyDOWTrigger.put_WeeksOfMonth |
IMonthlyDOWTrigger::put_WeeksOfMonth (taskschd.h) |
Gets or sets the weeks of the month during which the task runs. (Put) |
|
taskschd\imonthlydowtrigger_weeksofmonth.htm |
taskschd |
55bbf8d6-6ff6-46a3-82e2-b5986ee3927e |
12/05/2018 |
IMonthlyDOWTrigger interface [Task Scheduler],WeeksOfMonth property, IMonthlyDOWTrigger.WeeksOfMonth, IMonthlyDOWTrigger.put_WeeksOfMonth, IMonthlyDOWTrigger::WeeksOfMonth, IMonthlyDOWTrigger::get_WeeksOfMonth, IMonthlyDOWTrigger::put_WeeksOfMonth, WeeksOfMonth property [Task Scheduler], WeeksOfMonth property [Task Scheduler],IMonthlyDOWTrigger interface, put_WeeksOfMonth, taskschd.imonthlydowtrigger_weeksofmonth, taskschd/IMonthlyDOWTrigger::WeeksOfMonth, taskschd/IMonthlyDOWTrigger::get_WeeksOfMonth, taskschd/IMonthlyDOWTrigger::put_WeeksOfMonth |
taskschd.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008 [desktop apps only] |
Taskschd.lib |
Taskschd.dll |
Windows |
19H1 |
|
|
|
|
|
|
Gets or sets the weeks of the month during which the task runs.
This property is read/write.
The following table shows the mapping of the bitwise mask used by this property. Note that you can explicitly specify the last week of the month, regardless of what week it is, by specifying 0X10 (16).
Week | Hex value | Decimal value |
---|---|---|
First | 0X01 | 1 |
Second | 0x02 | 2 |
Third | 0X04 | 4 |
Fourth | 0X08 | 8 |
Last | 0X10 | 16 |
When reading or writing XML for a task, the weeks of the month of a monthly day-of-week calendar are specified by the Weeks element of the Task Scheduler schema.