JsonHttpResult<TValue> Class

Definition

An action result which formats the given object as JSON.

public sealed class JsonHttpResult<TValue> : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult<TValue>
type JsonHttpResult<'Value> = class
    interface IResult
    interface IStatusCodeHttpResult
    interface IValueHttpResult
    interface IValueHttpResult<'Value>
    interface IContentTypeHttpResult
Public NotInheritable Class JsonHttpResult(Of TValue)
Implements IContentTypeHttpResult, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of TValue)

Type Parameters

TValue
Inheritance
JsonHttpResult<TValue>
Implements

Properties

ContentType

Gets the value for the Content-Type header.

JsonSerializerOptions

Gets or sets the serializer settings.

StatusCode

Gets the HTTP status code.

Value

Gets the object result.

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

IValueHttpResult.Value

Applies to