Exceptions 元素
與行事曆相關聯的例外狀況集合。
<Exceptions>
<Exception>…</Exception>
</Exceptions>
父項目
子項目
Occurrences
最小值:0 最大值:1 |
範例
下列範例包含 Exceptions 元素中兩個行事曆例外狀況的定義。 [年份] 是依月份日期每年定義, (類型 = 2) 。 每年的假日依位置 (Type = 3) 定義,其中假日在第四個 (MonthPosition = 3) Thursday (MonthItem = 7) ,11 月 (月 = 10) 。
<Exceptions>
<Exception>
<EnteredByOccurrences>0</EnteredByOccurrences>
<TimePeriod>
<FromDate>2007-01-01T00:00:00</FromDate>
<ToDate>2026-01-01T23:59:00</ToDate>
</TimePeriod>
<Occurrences>20</Occurrences>
<Name>New Year's Day</Name>
<Type>2</Type>
<Month>0</Month>
<MonthDay>1</MonthDay>
<DayWorking>0</DayWorking>
</Exception>
<Exception>
<EnteredByOccurrences>0</EnteredByOccurrences>
<TimePeriod>
<FromDate>2007-11-22T00:00:00</FromDate>
<ToDate>2026-11-30T23:59:00</ToDate>
</TimePeriod>
<Occurrences>20</Occurrences>
<Name>Thanksgiving</Name>
<Type>3</Type>
<Month>10</Month>
<MonthItem>7</MonthItem>
<MonthPosition>3</MonthPosition>
<DayWorking>0</DayWorking>
</Exception>
</Exceptions>