corelibraries-devexpress-dot-xtrascheduler-dot-appointmentcanceleventargs.md
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
public bool Cancel { get; set; }
Public Property Cancel As Boolean
| Type | Description |
|---|---|
| Boolean |
true to cancel the operation performed on the event; otherwise, false.
|
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
case SynchronizeOperation.Create:
eventArgs.Cancel = eventArgs.OutlookAppointment != null && deletedAppointments.Contains(eventArgs.OutlookAppointment.EntryID);
break;
winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/OutlookSynchronizerHelper.vb#L167
Case SynchronizeOperation.Create
eventArgs.Cancel = eventArgs.OutlookAppointment IsNot Nothing AndAlso deletedAppointments.Contains(eventArgs.OutlookAppointment.EntryID)
Case SynchronizeOperation.Delete
See Also
AppointmentCancelEventArgs Class