AppointmentItem.GetOccurrence(Int32) Method

Obsolete. Gets an occurrence at the specified position within a series of recurring appointments.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

[Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(AppointmentItem pattern, int recurrenceIndex)", false)]
public AppointmentItem GetOccurrence(
    int recurrenceIndex
)
<Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(AppointmentItem pattern, int recurrenceIndex)", False)>
Public Function GetOccurrence(
    recurrenceIndex As Integer
) As AppointmentItem

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
AppointmentItem

An AppointmentItem object which is a regular recurring appointment in a series at the specified position.

Remarks

The GetOccurrence method of the pattern appointment allows you to get an occurrence at the specified position. Use the AppointmentItem.RecurrencePattern property to obtain a pattern appointment.

If an occurrence at the specified position is changed, the GetOccurrence method returns the modified occurrence (appointment exception). If an occurrence at the specified position is deleted, the GetOccurrence method returns null.

IMPORTANT

If the current appointment is not a pattern (its AppointmentItem.Type is not AppointmentType.Pattern), then calling the GetOccurrence method throws an exception.

See Also