AppointmentItem.DeleteExceptions() Method

Obsolete. Removes changed and deleted occurrences in the recurring series.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.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()
<Obsolete("Use the following API instead: var exceptions = scheduler.GetExceptions(appointment).ToList().ForEach(x => scheduler.AppointmentItems.Remove(x))", False)>
Public Sub 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