Share via


MvcOptions.ReturnHttpNotAcceptable Property

Definition

Gets or sets the flag which decides whether an HTTP 406 Not Acceptable response will be returned if no formatter has been selected to format the response. false by default.

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

Property Value

Applies to