Delen via


Accepted 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 Accepted : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type Accepted = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
Public NotInheritable Class Accepted
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
Inheritance
Accepted
Implements

Properties

Location

Gets the location at which the status of the requested content can be monitored.

StatusCode

Gets the HTTP status code: Status202Accepted

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

Applies to