The requested page is not available for the requested platform. You are viewing the content for Default platform.

BaseObjectSpace.CustomDeleteObjects Event

Occurs to replace the default process of deleting persistent objects with a custom one.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll


public event EventHandler<CustomDeleteObjectsEventArgs> CustomDeleteObjects
Public Event CustomDeleteObjects As EventHandler(Of CustomDeleteObjectsEventArgs)

Event Data

The CustomDeleteObjects event handler receives an argument of the DevExpress.ExpressApp.CustomDeleteObjectsEventArgs type.


The CustomDeleteObjects event is raised as a result of calling the BaseObjectSpace.Delete method. Handle this event to provide a custom process for deleting persistent objects. Use the handler's CustomDeleteObjectsEventArgs.Objects parameter to get the objects to be deleted. Set the handler's CompletedEventArgs.Handled parameter to true, to indicate that the delete operation has already been performed.

As an alternative to this event, you can override the DeleteCore method in the BaseObjectSpace class' descendant.

See Also