SchedulerStorage.AppointmentDeleting Event
Allows you to cancel the deletion of an appointment.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
Declaration
public event PersistentObjectCancelEventHandler AppointmentDeleting
Public Event AppointmentDeleting As PersistentObjectCancelEventHandler
Event Data
The AppointmentDeleting event's handler receives an argument of the PersistentObjectCancelEventArgs type. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cancel | Gets or sets whether the operation performed on the processed event should be canceled. |
| Object | Gets the persistent object for which the event was raised. Inherited from PersistentObjectEventArgs. |
Remarks
The AppointmentDeleting event is raised before an appointment is deleted and allows you to cancel the deletion of an appointment. The event parameter's PersistentObjectEventArgs.Object property allows the processed appointment to be identified. To prevent it from being deleted, set the PersistentObjectCancelEventArgs.Cancel property to true.
See Also