Share via


ApiBehaviorOptions.SuppressModelStateInvalidFilter Property

Definition

Gets or sets a value that determines if the filter that returns an BadRequestObjectResult when ModelState is invalid is suppressed. .

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

Property Value

Applies to