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

SchedulerControl.RestoreAppointments(IEnumerable<AppointmentItem>) Method

Reverts the specified appointments of the AppointmentType.ChangedOccurrence and AppointmentType.DeletedOccurrence types to the AppointmentType.Occurrence type.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public bool RestoreAppointments(
    IEnumerable<AppointmentItem> appointments
)

#Parameters

Name Type Description
appointments IEnumerable<AppointmentItem>

A list of DevExpress.Xpf.Scheduling.AppointmentItem objects that are changed occurrences to restore.

#Returns

Type Description
Boolean

true, if the appointments could not be restored; otherwise, false.

#Remarks

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:

See Also