Aracılığıyla paylaş


HttpRequestJsonExtensions.HasJsonContentType(HttpRequest) Yöntem

Tanım

JSON türleri için Content-Type üst bilgisini denetler.

public:
[System::Runtime::CompilerServices::Extension]
 static bool HasJsonContentType(Microsoft::AspNetCore::Http::HttpRequest ^ request);
public static bool HasJsonContentType (this Microsoft.AspNetCore.Http.HttpRequest request);
static member HasJsonContentType : Microsoft.AspNetCore.Http.HttpRequest -> bool
<Extension()>
Public Function HasJsonContentType (request As HttpRequest) As Boolean

Parametreler

request
HttpRequest

Döndürülenler

Content-Type üst bilgisi bir JSON içerik türünü temsil ediyorsa true; aksi takdirde false.

Şunlara uygulanır