FieldTemplateUserControl.IgnoreModelValidationAttribute(Type) Metod

Definition

Tillåter att en DynamicValidator ignorerar en viss typ av modellverifieringsattribut.

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

Parametrar

attributeType
Type

Attributet som ska ignoreras.

Kommentarer

Med den här metoden kan en DynamicValidator ignorera en viss typ av modellverifieringsattribut. Den här metoden anropas när attributtypen redan hanteras av en ASP.NET verifieringskontroller. Utan det här anropet kan verifieringen ske två gånger, vilket resulterar i ett duplicerat felmeddelande.

Gäller för