MvcOptions.ReturnHttpNotAcceptable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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