共用方式為


DefaultModelBindingMessageProvider.ValueMustNotBeNullAccessor 屬性

定義

當值系結至非 Nullable 屬性時 null ,模型系結系統會新增錯誤訊息。

public:
 virtual property Func<System::String ^, System::String ^> ^ ValueMustNotBeNullAccessor { Func<System::String ^, System::String ^> ^ get(); };
public override Func<string,string> ValueMustNotBeNullAccessor { get; }
member this.ValueMustNotBeNullAccessor : Func<string, string>
Public Overrides ReadOnly Property ValueMustNotBeNullAccessor As Func(Of String, String)

屬性值

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

適用於