Skip to main content
.NET Framework 4.5.2+

PersistenceValidationController.DeleteContextValidating Event

Occurs when an object that will be deleted is validated.

Namespace: DevExpress.ExpressApp.Validation

Assembly: DevExpress.ExpressApp.Validation.v24.1.dll

Declaration

public event EventHandler<DeleteContextValidatingEventArgs> DeleteContextValidating

Event Data

The DeleteContextValidating event's data class is DeleteContextValidatingEventArgs. The following properties provide information specific to this event:

Property Description
Context Specifies the validation context whose associated validation rules are about to be checked. Inherited from ContextValidatingEventArgs.
DeletingObject Gets an object that will be deleted.
TargetObjects Specifies the objects that are about to be validated in the validation context specified by the ContextValidatingEventArgs.Context property. Inherited from ContextValidatingEventArgs.

Remarks

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