Back to Devexpress

RuleSet.RegisterRules(ITypeInfo) Method

expressappframework-devexpress-dot-persistent-dot-validation-dot-ruleset-dot-registerrules-x28-devexpress-dot-expressapp-dot-dc-dot-itypeinfo-x29.md

latest1.9 KB
Original Source

RuleSet.RegisterRules(ITypeInfo) Method

Adds validation rules of the class given as a parameter to the RuleSet.

Namespace : DevExpress.Persistent.Validation

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

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
public void RegisterRules(
    ITypeInfo targetType
)
vb
Public Sub RegisterRules(
    targetType As ITypeInfo
)

Parameters

NameTypeDescription
targetTypeITypeInfo

Type, for which the corresponding class will be scanned for validation rules.

|

Remarks

The class given as a parameter will be searched for RuleBaseAttribute, its descendants and CodeRuleAttribute. Validation rules acquired from these attributes will be added to the RuleSet.

Implements

RegisterRules(ITypeInfo)

See Also

RuleSet Class

RuleSet Members

DevExpress.Persistent.Validation Namespace