Outlook) (RecurrencePattern.EndTime 屬性

會傳回或設定 Date,指出循環模式的結束時間。 讀取/寫入。

語法

expression。 EndTime

運算式 代表 RecurrencePattern 物件的變數。

註解

本屬性只對約會有效。

當您建立 RecurrencePattern 物件且尚未為約會指定任何時區時,RecurrencePattern 物件的 StartTime 和 EndTime 會以 Application.TimeZones.CurrentTimeZone 所指定的時區為基礎。

如果您想要針對特定時區建立週期性約會,您應該先建立 AppointmentItem、設定 AppointmentItem.StartTimeZone,然後呼叫 AppointmentItem.GetRecurrencePattern。 根據 AppointmentItem.StartTimeZone 所指定的時區,傳回的 RecurrencePattern 物件會同時具有 StartTime 和 EndTime。 請注意,在 [約會週期] 對話方塊中,指示為 [開始] 的時間是根據 AppointmentItem.StartTimeZone 的 RecurrencePattern.StartTime,但指示為 [結束] 的時間不一定與根據 AppointmentItem.StartTimeZone 的 RecurrencePattern.EndTime 相同;顯示的時間值是根據 AppointmentItem.EndTimeZone。

另請參閱

RecurrencePattern 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。