Back to Devexpress

Appointment.HasExceptions Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointment-4a9f2ddd.md

latest3.7 KB
Original Source

Appointment.HasExceptions Property

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

Declaration

csharp
bool HasExceptions { get; }
vb
ReadOnly Property HasExceptions As Boolean

Property Value

TypeDescription
Boolean

true , if changed or deleted occurrences have been created for the current pattern appointment; otherwise, false.

|

Remarks

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

csharp
if(schedulerAppointment.HasExceptions) {
    foreach(SchedulerAppointment exception in schedulerAppointment.GetExceptions()) {

winforms-scheduler-sync-with-ews/VB/EWSSyncExample/Synchronizer.vb#L250

vb
If schedulerAppointment.HasExceptions Then
    For Each exception As DevExpress.XtraScheduler.Appointment In schedulerAppointment.GetExceptions()

See Also

Appointments

GetExceptions()

CreateException(AppointmentType, Int32)

Appointment Interface

Appointment Members

DevExpress.XtraScheduler Namespace