Back to Devexpress

AppointmentCancelEventArgs.Cancel Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentcanceleventargs.md

latest2.8 KB
Original Source

AppointmentCancelEventArgs.Cancel Property

Gets or sets whether the operation performed on the processed event should be cancelled.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public bool Cancel { get; set; }
vb
Public Property Cancel As Boolean

Property Value

TypeDescription
Boolean

true to cancel the operation performed on the event; otherwise, false.

|

Remarks

Set the Cancel property to true to cancel the processing of an event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Cancel 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-outlook-calendars/CS/SyncWithOutlook/OutlookSynchronizerHelper.cs#L128

csharp
case SynchronizeOperation.Create:
    eventArgs.Cancel = eventArgs.OutlookAppointment != null && deletedAppointments.Contains(eventArgs.OutlookAppointment.EntryID);
    break;

winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/OutlookSynchronizerHelper.vb#L167

vb
Case SynchronizeOperation.Create
    eventArgs.Cancel = eventArgs.OutlookAppointment IsNot Nothing AndAlso deletedAppointments.Contains(eventArgs.OutlookAppointment.EntryID)
Case SynchronizeOperation.Delete

See Also

AppointmentCancelEventArgs Class

AppointmentCancelEventArgs Members

DevExpress.XtraScheduler Namespace