Skip to main content

AppointmentItem.DeleteExceptions() Method

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 AppointmentItem.RecurrencePattern property 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