Back to Devexpress

RuleBase Class

expressappframework-devexpress-dot-persistent-dot-validation-5ae350a4.md

latest1.9 KB
Original Source

RuleBase Class

Serves as the base class for Validation Rules.

Namespace : DevExpress.Persistent.Validation

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

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
public abstract class RuleBase :
    IRule,
    ISupportCheckRuleIntegrity,
    IObjectSpaceLink,
    ICaptionHelperProviderLink,
    IRulePropertiesCache
vb
Public MustInherit Class RuleBase
    Implements IRule,
               ISupportCheckRuleIntegrity,
               IObjectSpaceLink,
               ICaptionHelperProviderLink,
               IRulePropertiesCache

Remarks

The RuleBase class is the basic abstract class implementing the IRule interface. All the built-in Validation Rules inherit from RuleBase.

You can implement a custom Validation Rule by inheriting from the RuleBase class. To see an example, refer to the Implement Custom Rules topic.

Implements

IRule

IObjectSpaceLink

Inheritance

Object RuleBase

See Also

RuleBase Members

Validation Rules

DevExpress.Persistent.Validation Namespace