共用方式為


ModelBindingMessageProvider.UnknownValueIsInvalidAccessor 屬性

定義

當 類型 FormatException 為 或 OverflowExceptionException ,模型系結系統所新增的錯誤訊息為未知,且錯誤與屬性相關聯。

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

屬性值

預設值 String 為 「提供的值對 {0} 無效」。

適用於