OccurrenceCalculator.CalcOccurrences(TimeInterval, Appointment) Method
Creates a sequence of appointments for the specified pattern within the specified time interval.
public AppointmentBaseCollection CalcOccurrences( TimeInterval interval, Appointment pattern )
Public Function CalcOccurrences( interval As TimeInterval, pattern As Appointment ) As AppointmentBaseCollection
A TimeInterval object, that is the interval in which the occurrences are created.
An Appointment object, that is the pattern of recurrence series.
An AppointmentBaseCollection object, that is a collection of occurrences.
Use the CalcOccurrences method to generate a sequence of appointments with AppointmentType.Occurrence type for further investigation or comparison.
The OccurrenceCalculator creates a collection of occurrences based on the recurrence pattern only. It is not aware of any exceptions (deleted and changed occurrences). When appointment pattern evolves in the Scheduler, the recurrence series created by the OccurrenceCalculator is merged with data on deleted and changed occurrences.