The requested page is not available for the requested platform. You are viewing the content for Default platform.

RuleSet(IEnumerable<IRule>, IEnumerable<IRuleSource>) Constructor

Initializes a new instance of the RuleSet class.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public RuleSet(
    IEnumerable<IRule> rules,
    IEnumerable<IRuleSource> sources
)
Public Sub New(
    rules As IEnumerable(Of IRule),
    sources As IEnumerable(Of IRuleSource)
)

Parameters

Name Type Description
rules IEnumerable<IRule>

The list of all rules in the current RuleSet. Rules must implement the IRule interface.

sources IEnumerable<IRuleSource>

The list of all rule sources in the current RuleSet. Rule sources must implement the IRuleSource interface.

Remarks

Normally, one application should have only one RuleSet - Validator.RuleSet. This object is static and you can access it when you need to add or modify global validation rules. Custom RuleSets are not recommended because if you use them, some of your validation rules may be skipped and the validation results will be incorrect.

See Also