The event handler receives an argument of type PersistentObjectCancelEventArgs containing data related to this event.
The following
PersistentObjectCancelEventArgs properties provide information specific to this event.
Property |
Description |
Cancel |
Gets or sets whether to cancel the operation. |
The ResourceInserting event is raised before a resource is added to the resource collection of this storage, and allows you to cancel the operation. The event parameter's DevExpress.XtraScheduler.PersistentObjectEventArgs.Object property allows the processed resource to be identified. To prevent it from being added, set the DevExpress.XtraScheduler.PersistentObjectCancelEventArgs.Cancel property to true.