net7.0
namespace Microsoft.AspNetCore.Http
{
public static class HttpResponseJsonExtensions
{
[RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static Task! WriteAsJsonAsync(this HttpResponse! response, object? value, Type! type, JsonSerializerOptions? options, CancellationToken cancellationToken = default);
}
}
nuget.org | 0.0 %
Reference this API |
---|---|
.NET | 5.06.07.08.09.0 |
Information specific to net7.0 | |
Assembly | Microsoft.AspNetCore.Http.Extensions , Version=7.0.0.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Requires any:
|
Platform Restrictions | This API is supported on all platforms. |