IModelBindingMessageProvider.ValueMustBeANumberAccessor Proprietà

Definizione

Gli helper html e tag del messaggio di errore aggiungono per la convalida lato client di formati numerici. Visibile nel browser se il campo per una float proprietà (ad esempio) non ha un valore formattato correttamente.

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

Valore della proprietà

Il valore predefinito String è "Il campo {0} deve essere un numero".

Si applica a