JsonHttpResult<TValue> 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.
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 |
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 |