.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

RuleSet.ValidateRule(IObjectSpace, IRule, Object) Method

Checks a rule on a target and returns a result.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public static RuleValidationResult ValidateRule(
    IObjectSpace targetObjectSpace,
    IRule rule,
    object target
)

Parameters

Name Type Description
targetObjectSpace IObjectSpace

An IObjectSpace used by a validation target.

rule IRule

The IRule object that represents a rule to check.

target Object

An object to validate.

Returns

Type Description
RuleValidationResult

The validation result.

See Also