Skip to main content
A newer version of this page is available. .

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.v19.1.dll

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