Back to Devexpress

PersistenceValidationController.NeedToValidateObject Event

expressappframework-devexpress-dot-expressapp-dot-validation-dot-persistencevalidationcontroller-2dfca5dd.md

latest2.3 KB
Original Source

PersistenceValidationController.NeedToValidateObject Event

Occurs when determining objects to be validated.

Namespace : DevExpress.ExpressApp.Validation

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

NuGet Package : DevExpress.ExpressApp.Validation

Declaration

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

Event Data

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

PropertyDescription
CurrentObjectSpecifies an object which is about to be validated.
NeedToValidateIndicates whether the NeedToValidateObjectEventArgs.CurrentObject must be validated.

Remarks

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

PersistenceValidationController Class

PersistenceValidationController Members

DevExpress.ExpressApp.Validation Namespace