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

RuleValidationResult(IRule, Object, ValidationState, String) Constructor

In This Article
OBSOLETE

Use the RuleValidationResult(IRule rule, ValidationState validationResult, string formattedErrorMessage) constructor instead

Initializes a new instance of the RuleValidationResult class.

Namespace: DevExpress.Persistent.Validation

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

#Declaration

[Obsolete("Use the RuleValidationResult(IRule rule, ValidationState validationResult, string formattedErrorMessage) constructor instead")]
[Browsable(false)]
public RuleValidationResult(
    IRule rule,
    object target,
    ValidationState validationResult,
    string formattedErrorMessage
)

#Parameters

Name Type Description
rule IRule

An IRule object which represents the checked Validation Rule.

target Object

An object that was checked with the rule.

validationResult ValidationState

A ValidationState enumeration value which specifies whether the checked object satisfies the rule.

formattedErrorMessage String

A string holding the exception message, if the checked rule is broken.

See Also