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

RuleValidationResult(IRule, Object, ValidationState, String) Constructor

Obsolete. Initializes a new instance of the RuleValidationResult class.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v18.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
)
<Obsolete("Use the RuleValidationResult(IRule rule, ValidationState validationResult, string formattedErrorMessage) constructor instead")>
<Browsable(False)>
Public Sub New(
    rule As IRule,
    target As Object,
    validationResult As ValidationState,
    formattedErrorMessage As String
)

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