MvcOptions.RespectBrowserAcceptHeader 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 causes content negotiation to ignore Accept header
when it contains the media type /
. false
by default.
public:
property bool RespectBrowserAcceptHeader { bool get(); void set(bool value); };
public bool RespectBrowserAcceptHeader { get; set; }
member this.RespectBrowserAcceptHeader : bool with get, set
Public Property RespectBrowserAcceptHeader As Boolean