ModelBindingMessageProvider.MissingRequestBodyRequiredValueAccessor 属性

定义

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

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

属性值

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

适用于