Created Class

Definition

An IResult that on execution will write an object to the response with status code Created (201) and Location header.

public sealed class Created : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type Created = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
Public NotInheritable Class Created
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
Inheritance
Created
Implements

Properties

Location System.Object.Location
StatusCode

Gets the HTTP status code: Status201Created

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