ApiBehaviorOptions.SuppressModelStateInvalidFilter 属性

定义

获取或设置一个值,该值确定是否禁止在 无效时ModelState返回 的BadRequestObjectResult筛选器。 .

public:
 property bool SuppressModelStateInvalidFilter { bool get(); void set(bool value); };
public bool SuppressModelStateInvalidFilter { get; set; }
member this.SuppressModelStateInvalidFilter : bool with get, set
Public Property SuppressModelStateInvalidFilter As Boolean

属性值

适用于