DefaultModelBindingMessageProvider.MissingBindRequiredValueAccessor 属性

定义

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

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

属性值

Func<String,String>

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

适用于