MvcViewOptions.AllowRenderingMaxLengthAttribute Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy atrybut maxlength ma być renderowany dla zgodnych elementów HTML, gdy są one powiązane z modelami oznaczonymi atrybutami StringLengthAttribute lub 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

Wartość właściwości

Uwagi

Jeśli określono oba atrybuty, ten z mniejszą wartością będzie używany dla renderowanego maxlength atrybutu.

Dotyczy