共用方式為


ModelBindingMessageProvider.MissingKeyOrValueAccessor 屬性

定義

當索引鍵或 的值 KeyValuePair<TKey,TValue> 已系結,但不是兩者都系結時,模型系結系統會新增的錯誤訊息。

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

屬性值

預設值 String 為 「A value is required.」。

適用於