HttpResponseJsonExtensions Class
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.
Provides extension methods for writing a JSON serialized value to the HTTP response.
public ref class HttpResponseJsonExtensions abstract sealed
public static class HttpResponseJsonExtensions
type HttpResponseJsonExtensions = class
Public Module HttpResponseJsonExtensions
- Inheritance
-
HttpResponseJsonExtensions
Methods
WriteAsJsonAsync(HttpResponse, Object, JsonTypeInfo, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync(HttpResponse, Object, Type, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerContext, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to
|
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonTypeInfo<TValue>, String, CancellationToken) |
Write the specified value as JSON to the response body. The response content-type will be set to the specified content-type. |
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: