Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseObjectSpace.CustomDeleteObjects Event

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public event EventHandler<CustomDeleteObjectsEventArgs> CustomDeleteObjects

#Event Data

The CustomDeleteObjects event's data class is DevExpress.ExpressApp.CustomDeleteObjectsEventArgs.

#Remarks

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