DefaultHtmlGenerator.AllowRenderingMaxLengthAttribute Propiedad

Definición

Obtiene o establece un valor que indica si el atributo maxlength debe representarse para elementos de entrada HTML compatibles, cuando están enlazados a modelos marcados con atributos StringLengthAttribute o MaxLengthAttribute .

protected:
 property bool AllowRenderingMaxLengthAttribute { bool get(); };
protected bool AllowRenderingMaxLengthAttribute { get; }
member this.AllowRenderingMaxLengthAttribute : bool
Protected ReadOnly Property AllowRenderingMaxLengthAttribute As Boolean

Valor de propiedad

Boolean

El valor predeterminado es true.

Comentarios

Si se especifican ambos atributos, se usará el que tiene el valor más pequeño para el atributo maxlength representado.

Esta propiedad se omite actualmente.

Se aplica a