Back to Devexpress

SchedulerControl.RestoreAppointments(IEnumerable<AppointmentItem>) Method

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-dot-restoreappointments-x28-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xpf-dot-scheduling-dot-appointmentitem-x29.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public bool RestoreAppointments(
    IEnumerable<AppointmentItem> appointments
)
vb
Public Function RestoreAppointments(
    appointments As IEnumerable(Of AppointmentItem)
) As Boolean

Parameters

NameTypeDescription
appointmentsIEnumerable<AppointmentItem>

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

|

Returns

TypeDescription
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

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace