expressappframework-devexpress-dot-expressapp-dot-validation-a174efb7.md
The Rules node defines all the Rules that are applied in an application.
Namespace : DevExpress.ExpressApp.Validation
Assembly : DevExpress.ExpressApp.Validation.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Validation
[ModelNodesGenerator(typeof(ModelValidationRulesNodeGenerator))]
public interface IModelValidationRules :
IModelNode,
IModelList<IModelRuleBase>,
IList<IModelRuleBase>,
ICollection<IModelRuleBase>,
IEnumerable<IModelRuleBase>,
IEnumerable
<ModelNodesGenerator(GetType(ModelValidationRulesNodeGenerator))>
Public Interface IModelValidationRules
Inherits IModelNode,
IModelList(Of IModelRuleBase),
IList(Of IModelRuleBase),
ICollection(Of IModelRuleBase),
IEnumerable(Of IModelRuleBase),
IEnumerable
The following members return IModelValidationRules objects:
By default, the Rules node contains several Rules. You can add other Rules (both supplied Rule types and your own) using the context menu of this node.
This interface is a part of the Application Model infrastructure. You do not need to implement this interface in most cases.
The IModelValidationRules node represents a list of the IModelRuleBase nodes.
To customize the default content of this node, implement a Generator Updater for the ModelValidationRulesNodeGenerator Nodes Generator.
See Also
Validation (Prevent Data Errors)
Application Model (UI Settings Storage)