Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RuleBase.Validate(Object) Method

Checks that a particular object satisfies the Validation Rule.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v24.2.dll

#Declaration

public RuleValidationResult Validate(
    object target
)

#Parameters

Name Type Description
target Object

The object to check.

#Returns

Type Description
RuleValidationResult

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

#Remarks

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.

#Implements

See Also