.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleSet.NeedToValidateRule(IObjectSpace, IRule, Object, out String) Method

Checks if the rule is marked to be validated.

Namespace: DevExpress.Persistent.Validation

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


public static bool NeedToValidateRule(
    IObjectSpace targetObjectSpace,
    IRule rule,
    object target,
    out string reason
Public Shared Function NeedToValidateRule(
    targetObjectSpace As IObjectSpace,
    rule As IRule,
    target As Object,
    ByRef reason As String
) As Boolean


Name Type Description
targetObjectSpace IObjectSpace

An IObjectSpace used to load objects being validated by a rule.

rule IRule

A rule whose validation shall be checked.

target Object

A rule's target object.

reason String

Returns a string which is reason to validate the rule or not.


Type Description

true, if the rule will be validated; otherwise, false.

See Also