MvcViewOptions.AllowRenderingMaxLengthAttribute プロパティ

定義

互換性のある HTML 要素に対して maxlength 属性をレンダリングする必要があるかどうかを示す値を取得または設定します。これらは、 属性または MaxLengthAttribute 属性でStringLengthAttributeマークされたモデルにバインドされている場合です。

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

プロパティ値

注釈

両方の属性を指定した場合、値が小さい属性がレンダリングされた maxlength 属性に使用されます。

適用対象