The requested page is not available for the requested platform. You are viewing the content for Default platform.

RuleBase.Validate(Object) Method

Checks that a particular object satisfies the Validation Rule.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v19.1.dll


public RuleValidationResult Validate(
    object target
Public Function Validate(
    target As Object
) As RuleValidationResult


Name Type Description
target Object

The object to check.


Type Description

A RuleValidationResult object which represents the results of checking the specified object via the Validation Rule.


This method contains the logic that checks whether the target object is valid. The method returns a RuleValidationResult object. Its RuleValidationResult.State property indicates whether a checked object satisfied the Validation Rule. The RuleValidationResult.ErrorMessage property specifies the exception text, in case the Validation Rule was not satisfied.

See Also