Share via


IMonthlyDOWTrigger::get_MonthsOfYear 方法 (taskschd.h)

取得或設定工作執行期間年份的月份。

這是可讀寫的屬性。

語法

HRESULT get_MonthsOfYear(
  short *pMonths
);

參數

pMonths

傳回值

備註

下表顯示此屬性所使用的位遮罩對應。

Month 十六進位值 十進位值
January 0X01 1
二月 0x02 2
三月 0X04 4
四月 0X08 8
五月 0X10 16
六月 0X20 32
7 月 0x40 64
8 月 0X80 128
9 月 0X100 256
10 月 0X200 512
11 月 0X400 1024
December 0X800 2048
 

讀取或寫入任務的 XML 時,月曆的月數是由任務排程器架構的 Month 元素所指定。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 taskschd.h
程式庫 Taskschd.lib
Dll Taskschd.dll

另請參閱

IMonthlyDOWTrigger

工作排程器