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.v18.2.dll

Declaration

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

Parameters

Type Name Description
IObjectSpace targetObjectSpace

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

IRule rule

A rule whose validation shall be checked.

Object target

A rule's target object.

String reason

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

Returns

Type Description
Boolean

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

See Also