Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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