Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RuleBaseAttribute.ResultType Property

Specifies the application behavior when the rule is broken.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public ValidationResultType ResultType { get; set; }

Property Value

Type Description
ValidationResultType

A ValidationResultType enumeration value that specifies the application behavior when the rule is broken.

Remarks

The default value is Error, i.e., a user must make data valid in order to proceed. However, you can define validation rules that can be ignored by end users by setting ResultType to Warning or Info.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResultType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also