The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

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

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