CreatedResult CreatedResult CreatedResult Class

Definition

An ActionResult that returns a Created (201) response with a Location header.

[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(201)]
public class CreatedResult : Microsoft.AspNetCore.Mvc.ObjectResult
type CreatedResult = class
    inherit ObjectResult
Public Class CreatedResult
Inherits ObjectResult
Inheritance
Attributes

Constructors

CreatedResult(String, Object) CreatedResult(String, Object) CreatedResult(String, Object)

Initializes a new instance of the CreatedResult class with the values provided.

CreatedResult(Uri, Object) CreatedResult(Uri, Object) CreatedResult(Uri, Object)

Initializes a new instance of the CreatedResult class with the values provided.

Properties

ContentTypes ContentTypes ContentTypes Inherited from ObjectResult
DeclaredType DeclaredType DeclaredType Inherited from ObjectResult
Formatters Formatters Formatters Inherited from ObjectResult
Location Location Location

Gets or sets the location at which the content has been created.

StatusCode StatusCode StatusCode

Gets or sets the HTTP status code.

(Inherited from ObjectResult)
Value Value Value Inherited from ObjectResult

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext)

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) Inherited from ObjectResult
OnFormatting(ActionContext) OnFormatting(ActionContext) OnFormatting(ActionContext)

Applies to