DefaultModelBindingMessageProvider.MissingRequestBodyRequiredValueAccessor 属性

定义

如果未为请求正文提供值,但需要值,则模型绑定系统将添加错误消息。

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

属性值

默认值为 String “需要非空请求正文”。。

适用于