IMonthlyDOWTrigger::get_MonthsOfYear 方法 (taskschd.h)

获取或设置任务运行年份的月份。

此属性是可读写的。

语法

HRESULT get_MonthsOfYear(
  short *pMonths
);

参数

pMonths

返回值

备注

下表显示了此属性使用的按位掩码的映射。

Month 十六进制值 十进制值
1 月 0X01 1
February 0x02 2
3 月 0X04 4
April 0X08 8
五月 0X10 16
June 0X20 32
7 月 0x40 64
8 月 0X80 128
9 月 0X100 256
10 月 0X200 512
11 月 0X400 1024
12 月 0X800 2048
 

读取或写入任务的 XML 时,每月星期几日历中的月份由任务计划程序架构的 Months 元素指定。

要求

要求
最低受支持的客户端 Windows Vista [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 [仅限桌面应用]
目标平台 Windows
标头 taskschd.h
Library Taskschd.lib
DLL Taskschd.dll

另请参阅

IMonthlyDOWTrigger

任务计划程序