DefaultModelBindingMessageProvider.NonPropertyValueMustBeANumberAccessor Property

Definition

Error message HTML and tag helpers add for client-side validation of numeric formats. Visible in the browser if the field for a float (for example) collection element or action parameter does not have a correctly-formatted value.

C#
public override Func<string> NonPropertyValueMustBeANumberAccessor { get; }

Property Value

Default String is "The field must be a number.".

Applies to

Produk Versi
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0