AppointmentItem.GetOccurrence(Int32) Method
OBSOLETE
Use the following API instead: scheduler.GetOccurrenceOrException(AppointmentItem pattern, int recurrenceIndex)
Gets an occurrence at the specified position within a series of recurring appointments.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
[Obsolete("Use the following API instead: scheduler.GetOccurrenceOrException(AppointmentItem pattern, int recurrenceIndex)", false)]
public AppointmentItem GetOccurrence(
int recurrenceIndex
)
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.