Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AppointmentItem.SetExceptionRecurrencePattern(AppointmentItem) Method

OBSOLETE

Use the following API instead: appointmentItem.SetPatternReference(AppointmentItem pattern, int recurrenceIndex)

Specifies a recurrence pattern for the appointment exception.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

[Obsolete("Use the following API instead: appointmentItem.SetPatternReference(AppointmentItem pattern, int recurrenceIndex)", false)]
public void SetExceptionRecurrencePattern(
    AppointmentItem pattern
)

#Parameters

Name Type Description
pattern AppointmentItem

An AppointmentItem object that is a valid pattern appointment (the AppointmentItem.Type is AppointmentType.Pattern, the AppointmentItem.RecurrenceInfo is not null).

#Remarks

Use the SetExceptionRecurrencePattern method to change the SchedulerItemBase.RecurrenceIndex value.

If an appointment is not an exception in a recurring series, the method does nothing. If an appointment is not contained in the SchedulerControl.AppointmentItems collection, a System.InvalidOperationException is thrown. If the specified appointment pattern is not a valid pattern, a System.Exception is thrown.

See Also