Skip to content

Latest commit

 

History

History
95 lines (57 loc) · 2.43 KB

monthlydowtrigger-monthsofyear.md

File metadata and controls

95 lines (57 loc) · 2.43 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
MonthlyDOWTrigger.MonthsOfYear property
For scripting, gets or sets the months of the year during which the task runs. | MonthlyDOWTrigger.MonthsOfYear property
4ab7ab43-9c9b-4cd3-be8f-1989b83e8cf3
MonthsOfYear property Task Scheduler
MonthsOfYear property Task Scheduler , MonthlyDOWTrigger object
MonthlyDOWTrigger object Task Scheduler , MonthsOfYear property
apiref
MonthlyDOWTrigger.MonthsOfYear
taskschd.dll
COM
reference
05/31/2018

MonthlyDOWTrigger.MonthsOfYear property

For scripting, gets or sets the months of the year during which the task runs.

Syntax

MonthlyDOWTrigger.MonthsOfYear As short

Property value

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

Remarks

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

Month Hex value Decimal value
January 0X01 1
February 0x02 2
March 0X04 4
April 0X08 8
May 0X10 16
June 0X20 32
July 0x40 64
August 0X80 128
September 0X100 256
October 0X200 512
November 0X400 1024
December 0X800 2048

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

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

MonthlyDOWTrigger

Task Scheduler