.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ValidationState Enum

Contains values that specify the possible states of a Validation Rule.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public enum ValidationState

Members

Name Description
Valid

Specifies that the validation rule has been checked and the current object satisfied it.

Invalid

Specifies that the validation rule has been checked and the current object did not satisfy it.

Skipped

Specifies that the validation rule has not been checked. This can be the case, for instance, when the validated property is not specified (see RuleBaseAttribute.SkipNullOrEmptyValues), or the validated object does not satisfy the specified TargetCriteria (see RuleBaseAttribute.TargetCriteria).

Remarks

These values are used to set the RuleValidationResult.State property.

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

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