共用方式為


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>

要設定的值。

適用於