PersistenceValidationController.NeedToValidateObject Event

Occurs when determining objects to be validated.

Namespace: DevExpress.ExpressApp.Validation

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


public event EventHandler<NeedToValidateObjectEventArgs> NeedToValidateObject
Public Event NeedToValidateObject As EventHandler(Of NeedToValidateObjectEventArgs)

The event handler receives an argument of the NeedToValidateObjectEventArgs type.

Property Description

Specifies an object which is about to be validated.


Indicates whether the NeedToValidateObjectEventArgs.CurrentObject must be validated.

Handle this event to exclude particular objects from validation. This event is triggered for each object that is about to be validated. To exclude particular objects from validation, check that the object specified by the CurrentObject property fits your criteria and set the NeedToValidate property to false.

See Also