Skip to main content
.NET 6.0+

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

Checks if the rule is marked to be validated.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public static bool NeedToValidateRule(
    IObjectSpace targetObjectSpace,
    IRule rule,
    object target,
    string contextId,
    out string reason
)

Parameters

Name Type Description
targetObjectSpace IObjectSpace

An IObjectSpace used by a validation target.

rule IRule

The IRule object whose validation shall be checked.

target Object

A rule’s target object.

contextId String

A CustomNeedToValidateRuleEventArgs.ContextId which is a validation context of the rule.

reason String

Returns a reason to validate the rule or not.

Returns

Type Description
Boolean

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

See Also