DefaultModelBindingMessageProvider.SetValueMustBeANumberAccessor 方法

定义

设置 ValueMustBeANumberAccessor 属性。

public:
 void SetValueMustBeANumberAccessor(Func<System::String ^, System::String ^> ^ valueMustBeANumberAccessor);
public void SetValueMustBeANumberAccessor (Func<string,string> valueMustBeANumberAccessor);
member this.SetValueMustBeANumberAccessor : Func<string, string> -> unit
Public Sub SetValueMustBeANumberAccessor (valueMustBeANumberAccessor As Func(Of String, String))

参数

valueMustBeANumberAccessor
Func<String,String>

要设置的值。

适用于