DefaultModelBindingMessageProvider.SetNonPropertyAttemptedValueIsInvalidAccessor 方法

定义

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

参数

nonPropertyAttemptedValueIsInvalidAccessor
Func<String,String>

要设置的值。

适用于