FieldTemplateUserControl.IgnoreModelValidationAttribute(Type) Methode

Definition

Ermöglicht das DynamicValidator Ignorieren eines bestimmten Typs des Modellüberprüfungsattributs.

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

Parameter

attributeType
Type

Das attribut, das ignoriert werden soll.

Hinweise

Mit dieser Methode kann ein DynamicValidator bestimmter Typ von Modellüberprüfungsattributen ignoriert werden. Diese Methode wird aufgerufen, wenn der Attributtyp bereits von einem ASP.NET Überprüfungssteuerelementen behandelt wird. Ohne diesen Aufruf kann die Überprüfung zweimal auftreten, was zu einer doppelten Fehlermeldung führt.

Gilt für: