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

IRuleSource.CreateRules() Method

Instantiates custom Validation Rules.

Namespace: DevExpress.Persistent.Validation

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

Declaration

ICollection<IRule> CreateRules()
Function CreateRules As ICollection(Of IRule)
ICollection<IRule> CreateRules()
Function CreateRules As ICollection(Of IRule)
ICollection<IRule> CreateRules()
Function CreateRules As ICollection(Of IRule)

Returns

Type Description
ICollection<IRule>

An ICollection<IRule> object, which represents custom Validation Rules.

Returns

Type Description
ICollection<IRule>

An ICollection<IRule> object, which represents custom Validation Rules.

Returns

Type Description
ICollection<IRule>

An ICollection<IRule> object, which represents custom Validation Rules.

Remarks

When implementing the IRuleSource interface, use this property to supply the Validation Module with custom Validation Rules.

To see an example of implementing the IRuleSource interface, refer to the "Custom Rule Source" section of the Declare Validation Rules topic.

See Also