IMonthlyTrigger::p ut_MonthsOfYear 方法 (taskschd.h)

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

這是可讀寫的屬性。

語法

HRESULT put_MonthsOfYear(
  short months
);

參數

months

傳回值

備註

下表顯示這個屬性所使用的位掩碼對應。

Month 十六進位值 十進位值
January 0X001 1
二月 0x002 2
三月 0X004 4
四月 0x008 8
五月 0X010 16
六月 0X020 32
7 月 0x040 64
8 月 0X080 128
9 月 0X100 256
10 月 0X200 512
11 月 0X400 1024
December 0X800 2048
 

讀取或寫入工作自己的 XML 時,會使用工作排程器架構的 Months 元素來指定年份的 月份

規格需求

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

另請參閱

IMonthlyTrigger

工作排程器