Skip to main content
.NET Framework 4.5.2+

IModelValidationDefaultErrorMessageTemplates Interface

The ErrorMessageTemplates node defines the default templates for the messages displayed when validation rules are broken.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public interface IModelValidationDefaultErrorMessageTemplates :
    IModelNode

Remarks

When rules are broken, some description should be written in the Validation Error window for every rule. This node defines the default message templates that are designed for built-in rule types. These messages are displayed in the Validation Error window, by default. You can customize them. In this instance, the custom text will be used for all rules of the corresponding type. To customize a message template for a certain rule, use the corresponding IModelRuleBase node. In this node, use the required MessageTempate… property.

In message templates, you can use format items. For instance, when using the {TargetPropertyName} format item, the caption of the validated property will be inserted in the rule description. For details, refer to the RuleBaseAttribute.CustomMessageTemplate property description.

This interface is a part of the Application Model infrastructure. You do not need to implement this interface in most cases.

See Also