共用方式為


ModelBindingMessageProvider.AttemptedValueIsInvalidAccessor 屬性

定義

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

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

屬性值

預設值 String 為 「值 ' {0} ' 對 {1} 無效」。

適用於