Reverts the specified appointments of the AppointmentType.ChangedOccurrence and AppointmentType.DeletedOccurrence types to the AppointmentType.Occurrence type.
public bool RestoreAppointments( IEnumerable<AppointmentItem> appointments )
Public Function RestoreAppointments( appointments As IEnumerable(Of AppointmentItem) ) As Boolean
A list of DevExpress.Xpf.Scheduling.AppointmentItem objects that are changed occurrences to restore.
true, if the appointments could not be restored; otherwise, false.
If the collection passed to method's appointments parameter contains appointments of any type other than the AppointmentType.ChangedOccurrence and AppointmentType.DeletedOccurrence, an exception is thrown.
The method does not restore any of the specified appointments and returns false in either of the following cases:
- It would lead to conflicts restricted by the AllowAppointmentConflicts property and the CustomAllowAppointmentConflicts event for all appointments in the appointments collection
- The Cancel property of your AppointmentRestoring event implementation returns true for all appointments in the appointments collection.