IModelBindingMessageProvider.UnknownValueIsInvalidAccessor 属性

定义

当 类型FormatException为 或 且OverflowException值未知时Exception,模型绑定系统会添加错误消息。

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

属性值

默认值为 String “提供的值对 {0}无效”。

适用于