SchedulerStorage.ResourceDeleting Event
Allows the deletion of a resource to be cancelled.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
Declaration
public event PersistentObjectCancelEventHandler ResourceDeleting
Public Event ResourceDeleting As PersistentObjectCancelEventHandler
Event Data
The ResourceDeleting 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 ResourceDeleting event is raised before a resource is deleted, and allows you to cancel its deletion. The event parameter's PersistentObjectEventArgs.Object property allows the processed resource to be identified. To prevent it from being deleted, set the PersistentObjectCancelEventArgs.Cancel property to true.
See Also