Edit

Share via


FieldTemplateUserControl.IgnoreModelValidationAttribute(Type) Method

Definition

Allows a DynamicValidator to ignore a specific type of model validation attribute.

C#
protected void IgnoreModelValidationAttribute(Type attributeType);

Parameters

attributeType
Type

The attribute to ignore.

Remarks

This method allows a DynamicValidator to ignore a specific type of model Validation attributes. This method is called when the attribute type is already handled by an ASP.NET validation controls. Without this call, the validation can occur two times, resulting in a duplicate error message.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1