.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

CodeRuleAttribute Class

Applied to a validation rule. Specifies that the rule is intended for a particular business class and does not have a corresponding validation attribute.

Namespace: DevExpress.Persistent.Validation

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

Declaration

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class CodeRuleAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Class, AllowMultiple:=False)>
Public Class CodeRuleAttribute
    Inherits Attribute
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class CodeRuleAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Class, AllowMultiple:=False)>
Public Class CodeRuleAttribute
    Inherits Attribute
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class CodeRuleAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Class, AllowMultiple:=False)>
Public Class CodeRuleAttribute
    Inherits Attribute

Remarks

The rule's target class can be specified as the base class' generic parameter or via the rule's constructor. For details, refer to the "Implement a Code Rule" section of the Implement Custom Rules topic.

Inheritance

Object
Attribute
CodeRuleAttribute
See Also