Megosztás a következőn keresztül:


MvcOptions.RespectBrowserAcceptHeader Property

Definition

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

Property Value

Applies to