HttpRequestJsonExtensions.HasJsonContentType(HttpRequest) Methode

Definition

Überprüft den Content-Type-Header auf JSON-Typen.

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

Parameter

request
HttpRequest

Gibt zurück

true, wenn der Content-Type-Header einen JSON-Inhaltstyp darstellt; andernfalls false.

Gilt für: