MvcViewOptions.AllowRenderingMaxLengthAttribute Propriété

Définition

Obtient ou définit une valeur qui indique si l’attribut maxlength doit être rendu pour les éléments HTML compatibles, lorsqu’ils sont liés à des modèles marqués avec StringLengthAttribute des attributs ou MaxLengthAttribute .

public:
 property bool AllowRenderingMaxLengthAttribute { bool get(); void set(bool value); };
public bool AllowRenderingMaxLengthAttribute { get; set; }
member this.AllowRenderingMaxLengthAttribute : bool with get, set
Public Property AllowRenderingMaxLengthAttribute As Boolean

Valeur de propriété

Remarques

Si les deux attributs sont spécifiés, celui avec la plus petite valeur sera utilisé pour l’attribut rendu maxlength .

S’applique à