DefaultHtmlGenerator.AllowRenderingMaxLengthAttribute Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the maxlength
attribute should be rendered for
compatible HTML input elements, when they're bound to models marked with either
StringLengthAttribute or MaxLengthAttribute attributes.
protected:
property bool AllowRenderingMaxLengthAttribute { bool get(); };
protected bool AllowRenderingMaxLengthAttribute { get; }
member this.AllowRenderingMaxLengthAttribute : bool
Protected ReadOnly Property AllowRenderingMaxLengthAttribute As Boolean
Property Value
The default value is true
.
Remarks
If both attributes are specified, the one with the smaller value will be used for the rendered maxlength
attribute.
This property is currently ignored.