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+

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.v19.2.dll

Declaration

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

Parameters

Name Type Description
targetType ITypeInfo

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

Parameters

Name Type Description
targetType ITypeInfo

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

Parameters

Name Type Description
targetType ITypeInfo

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.

See Also