Share via


ModelBindingMessageProvider.ValueMustBeANumberAccessor 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) property does not have a correctly-formatted value.

public:
 property Func<System::String ^, System::String ^> ^ ValueMustBeANumberAccessor { Func<System::String ^, System::String ^> ^ get(); void set(Func<System::String ^, System::String ^> ^ value); };
public:
 virtual property Func<System::String ^, System::String ^> ^ ValueMustBeANumberAccessor { Func<System::String ^, System::String ^> ^ get(); };
public Func<string,string> ValueMustBeANumberAccessor { get; set; }
public virtual Func<string,string> ValueMustBeANumberAccessor { get; }
member this.ValueMustBeANumberAccessor : Func<string, string> with get, set
member this.ValueMustBeANumberAccessor : Func<string, string>
Public Property ValueMustBeANumberAccessor As Func(Of String, String)
Public Overridable ReadOnly Property ValueMustBeANumberAccessor As Func(Of String, String)

Property Value

Default String is "The field {0} must be a number.".

Applies to