ModelBindingMessageProvider.ValueIsInvalidAccessor 属性

定义

当 属性无效但 ModelError具有 nullErrorMessage时,将显示回退错误消息 HTML 和标记帮助程序。

public:
 property Func<System::String ^, System::String ^> ^ ValueIsInvalidAccessor { Func<System::String ^, System::String ^> ^ get(); void set(Func<System::String ^, System::String ^> ^ value); };
public:
 virtual property Func<System::String ^, System::String ^> ^ ValueIsInvalidAccessor { Func<System::String ^, System::String ^> ^ get(); };
public Func<string,string> ValueIsInvalidAccessor { get; set; }
public virtual Func<string,string> ValueIsInvalidAccessor { get; }
member this.ValueIsInvalidAccessor : Func<string, string> with get, set
member this.ValueIsInvalidAccessor : Func<string, string>
Public Property ValueIsInvalidAccessor As Func(Of String, String)
Public Overridable ReadOnly Property ValueIsInvalidAccessor As Func(Of String, String)

属性值

默认值为 String “值 '{0}' 无效。

适用于