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.DeleteExceptions() Method

In This Article
OBSOLETE

Use the following API instead: var exceptions = scheduler.GetExceptions(appointment).ToList().ForEach(x => scheduler.AppointmentItems.Remove(x))

Removes changed and deleted occurrences in the recurring series.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

[Obsolete("Use the following API instead: var exceptions = scheduler.GetExceptions(appointment).ToList().ForEach(x => scheduler.AppointmentItems.Remove(x))", false)]
public void DeleteExceptions()

#Remarks

Call the DeleteExceptions method of the pattern appointment to remove exceptions (changed and deleted occurrences) in the recurring series defined by that pattern. Use the SchedulerControl.GetPattern method to obtain a pattern appointment.

Important

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

See Also