Back to Devexpress

IRuleBaseProperties.ResultType Property

expressappframework-devexpress-dot-persistent-dot-validation-dot-irulebaseproperties.md

latest2.2 KB
Original Source

IRuleBaseProperties.ResultType Property

Specifies the application behavior when the rule is broken.

Namespace : DevExpress.Persistent.Validation

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

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
[DefaultValue(typeof(ValidationResultType), "Error")]
[Required]
ValidationResultType ResultType { get; set; }
vb
<Required>
<DefaultValue(GetType(ValidationResultType), "Error")>
Property ResultType As ValidationResultType

Property Value

TypeDefaultDescription
ValidationResultType"Error"

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

|

Available values:

NameDescription
Error

An error dialog is displayed when a rule is broken. A user must modify data in order to fix the error and proceed.

| | Warning |

A warning dialog is displayed a rule is broken. A user can ignore this warning and proceed.

| | Information |

No dialog is displayed when a rule is broken. Instead, an information glyph appears near the rule’s target property in UI. Broken rule details are available in this glyph’s tooltip.

|

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.

See Also

IRuleBaseProperties Interface

IRuleBaseProperties Members

DevExpress.Persistent.Validation Namespace