Share via


FieldTemplateUserControl.IgnoreModelValidationAttribute(Type) 方法

定义

允许 DynamicValidator 忽略特定类型的模型验证特性。

protected:
 void IgnoreModelValidationAttribute(Type ^ attributeType);
protected void IgnoreModelValidationAttribute (Type attributeType);
member this.IgnoreModelValidationAttribute : Type -> unit
Protected Sub IgnoreModelValidationAttribute (attributeType As Type)

参数

attributeType
Type

要忽略的特性。

注解

此方法允许 DynamicValidator 忽略特定类型的模型验证属性。 当属性类型已由 ASP.NET 验证控件处理时,将调用此方法。 如果没有此调用,验证可能会发生两次,从而导致重复的错误消息。

适用于