PersistenceValidationController.DeleteContextValidating Event

Occurs when an object that will be deleted is validated.

Namespace: DevExpress.ExpressApp.Validation

Assembly: DevExpress.ExpressApp.Validation.v18.2.dll

Declaration

public event EventHandler<DeleteContextValidatingEventArgs> DeleteContextValidating
Public Event DeleteContextValidating As EventHandler(Of DeleteContextValidatingEventArgs)

The event handler receives an argument of the DeleteContextValidatingEventArgs type.

Property Description
DeletingObject

Gets an object that will be deleted.

Handle this event to customize the list of objects to validate in the Delete context. The DeleteContextValidatingEventArgs.DeletingObject parameter contains a null value if an object is already marked as deleted, or refers to an object that will be deleted. By default, the object that is deleted and all its aggregates are validated.

See Also