Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RuleBaseAttribute Class

Represents a base class for validation system attributes.

Namespace: DevExpress.Persistent.Validation

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

#Declaration

public abstract class RuleBaseAttribute :
    Attribute,
    IRuleBaseAttribute,
    IRuleCollectionPropertyProperties,
    IRuleBaseProperties

#Remarks

In the XAF, to define a particular validation rule for a business class or its property, you can use built-in validation attributes. The RuleBaseAttribute represents a base class for all validation attributes. It provides properties that can be used in any descendent attribute. For details, refer to the class’ member list.

Declare the RuleBaseAttribute descendant’s Properties property as non-public. Use the new modifier to hide the base class Properties property.

Note

Alternatively, you can define validation rules in the Application Model. See the Validation Rules topic, for details.

See Also