Occurrences Element

The number of occurrences for which the calendar exception is valid.

<Occurrences>
  IntegerValue
</Occurrences>

Parent Elements

Exception

Occurrences

Minimum: 0

Maximum: 1

Example

In the following example, the Occurrences element indicates that the calendar exception occurs only once.

<Exception>
  <EnteredByOccurrences>0</EnteredByOccurrences>
  <TimePeriod>
    <FromDate>2007-01-01T00:00:00</FromDate>
    <ToDate>2007-01-01T23:59:00</ToDate>
  </TimePeriod>
  <Occurrences>1</Occurrences>
  <Name>New Year's Day</Name>
  <Type>1</Type>
  <DayWorking>0</DayWorking>
</Exception>

See Also

Concepts

Calendar Elements and XML Structure

XML Schema for the Calendars Element