DefaultHtmlGenerator.AllowRenderingMaxLengthAttribute 属性       
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示当属性绑定到使用 或 MaxLengthAttribute 属性标记StringLengthAttribute的模型时,是否maxlength应为兼容的 HTML 输入元素呈现特性。
protected:
 property bool AllowRenderingMaxLengthAttribute { bool get(); };protected bool AllowRenderingMaxLengthAttribute { get; }member this.AllowRenderingMaxLengthAttribute : boolProtected ReadOnly Property AllowRenderingMaxLengthAttribute As Boolean属性值
默认值为 true。
注解
如果同时指定了两个属性,则值较小的属性将用于呈现 maxlength 的属性。
此属性当前被忽略。