Appointment.GetOccurrence(Int32) Method
Gets an occurrence at the specified position within a series of recurring appointments.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v19.1.Core.dll
Declaration
Appointment GetOccurrence(
int recurrenceIndex
)
Function GetOccurrence(
recurrenceIndex As Integer
) As Appointment
Parameters
Name | Type | Description |
---|---|---|
recurrenceIndex | Int32 | A zero-based integer which identifies the index of an occurrence in the series of recurring appointments. |
Returns
Type | Description |
---|---|
Appointment | An Appointment object which is an occurrence at the specified position. |
Remarks
An appointment of the AppointmentType.Pattern type starts the series of recurring appointments. Each occurrence in the series is identified by a zero-based recurrence index specified by the Appointment.RecurrenceIndex property.
The GetOccurrence method allows you to get an occurrence at the specified position. If an occurrence at the specified position has been modified, the GetOccurrence method returns the modified occurrence (appointment exception). If an occurrence at the specified position is deleted, the GetOccurrence method returns null.
NOTE
If the current appointment is not a patten (its Appointment.Type is not AppointmentType.Pattern), then the ArgumentException exception is thrown.