ModelBindingMessageProvider.MissingBindRequiredValueAccessor 属性

定义

未绑定具有关联的 BindRequiredAttribute 的属性时,模型绑定系统添加的错误消息。

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

属性值

默认值为 String “未提供''{0}参数或属性的值”。”

适用于