The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleBaseAttribute Properties

Represents a base class for validation system attributes.

Name Description

Specifies informational text to be added to the exception message, when the current rule is broken.


Specifies whether the current rule should be inverted, to be checked.


Specifies a name of the rule created using the current attribute.


Specifies the application behavior when the rule is broken.


Specifies whether the current rule is checked for the properties that are set to null (Nothing in VB), an empty string (for string type propeties) or a minimal date (for DateTime type properties).


Specifies a context for checking the current Rule.


Specifies a criterion that must be satisfied by the validated object or property to check rules.

TypeId When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
See Also