Compartilhar via


MvcViewOptions.AllowRenderingMaxLengthAttribute Propriedade

Definição

Obtém ou define um valor que indica se o atributo maxlength deve ser renderizado para elementos HTML compatíveis, quando eles estão associados a modelos marcados com StringLengthAttribute atributos 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

Valor da propriedade

Comentários

Se ambos os atributos forem especificados, aquele com o valor menor será usado para o atributo renderizado maxlength .

Aplica-se a