Share via


DefaultHtmlGenerator.AllowRenderingMaxLengthAttribute 屬性

定義

取得或設定值,這個值表示當屬性系結至標示 StringLengthAttribute 為 或 MaxLengthAttribute 屬性的模型時,是否 maxlength 應該轉譯為相容的 HTML 輸入元素。

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

屬性值

預設值是 true

備註

如果同時指定這兩個屬性,則具有較小值的屬性將會用於轉 maxlength 譯的屬性。

此屬性目前會被忽略。

適用於