HttpRequestJsonExtensions.HasJsonContentType(HttpRequest) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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.