corelibraries-devexpress-dot-xtrascheduler-dot-appointment-4a9f2ddd.md
Gets whether changed or deleted occurrences have been created for the current pattern appointment.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
bool HasExceptions { get; }
ReadOnly Property HasExceptions As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if changed or deleted occurrences have been created for the current pattern appointment; otherwise, false.
|
The HasExceptions property returns true if changed or deleted occurrences exist in the recurrence series for the current appointment pattern. If exceptional appointments have not been created for the pattern, the HasExceptions property will return false.
If the current appointment is not a patten (its Appointment.Type is not AppointmentType.Pattern), the HasExceptions returns null.
To get changed or deleted occurrences for a pattern appointment, use the Appointment.GetExceptions method. To create a changed or deleted occurrence for a pattern, use the Appointment.CreateException method.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HasExceptions property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-scheduler-sync-with-ews/CS/EWSSyncExample/Synchronizer.cs#L262
if(schedulerAppointment.HasExceptions) {
foreach(SchedulerAppointment exception in schedulerAppointment.GetExceptions()) {
winforms-scheduler-sync-with-ews/VB/EWSSyncExample/Synchronizer.vb#L250
If schedulerAppointment.HasExceptions Then
For Each exception As DevExpress.XtraScheduler.Appointment In schedulerAppointment.GetExceptions()
See Also