Back to Devexpress

RuleBaseAttribute Properties

expressappframework-devexpress-dot-persistent-dot-validation-dot-rulebaseattribute-dot-underscore-properties.md

latest2.3 KB
Original Source

RuleBaseAttribute Properties

Represents a base class for validation system attributes.

NameDescription
CustomMessageTemplateSpecifies informational text that is to be added to the exception message when the current Validation Rule is broken.
InvertResultSpecifies whether the current rule should be inverted, to be checked.
NameSpecifies a name of the rule created using the current attribute.
ResultTypeSpecifies the application behavior when the rule is broken.
SkipNullOrEmptyValuesSpecifies whether the current rule is checked for the properties that are set to null, an empty string (for string type propeties) or a minimal date (for DateTime type properties).
TargetContextIDsSpecifies a context for checking the current Rule.
TargetCriteriaSpecifies a criterion that must be satisfied by the validated object or property to check rules.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute. Inherited from Attribute.

See Also

RuleBaseAttribute Class

RuleBaseAttribute Members

DevExpress.Persistent.Validation Namespace