共用方式為


ModelBindingMessageProvider.ValueIsInvalidAccessor 屬性

定義

後援錯誤訊息 HTML 和標籤協助程式會在屬性無效但 ModelError 具有 nullErrorMessage 時顯示。

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} ' 無效」。

適用於