Dela via


AcceptedAtRoute<TValue> Class

Definition

An IResult that on execution will write an object to the response with status code Accepted (202) and Location header. Targets a registered route.

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

Type Parameters

TValue

The type of object that will be JSON serialized to the response body.

Inheritance
AcceptedAtRoute<TValue>
Implements

Properties

RouteName

Gets the name of the route to use for generating the URL.

RouteValues

Gets the route data to use for generating the URL.

StatusCode

Gets the HTTP status code: Status202Accepted

Value

Gets the object result.

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Explicit Interface Implementations

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

Populates metadata for the related Endpoint and MethodInfo.

IStatusCodeHttpResult.StatusCode
IValueHttpResult.Value

Applies to