MvcViewOptions.AllowRenderingMaxLengthAttribute Propiedad

Definición

Obtiene o establece un valor que indica si el atributo maxlength debe representarse para elementos HTML compatibles, cuando están enlazados a modelos marcados con atributos StringLengthAttribute o 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

Valor de propiedad

Boolean

Comentarios

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

Se aplica a