CreatedResult 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 ActionResult that returns a Created (201) response with a Location header.
public ref class CreatedResult : Microsoft::AspNetCore::Mvc::ObjectResult
public class CreatedResult : Microsoft.AspNetCore.Mvc.ObjectResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(201)]
public class CreatedResult : Microsoft.AspNetCore.Mvc.ObjectResult
type CreatedResult = class
inherit ObjectResult
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(201)>]
type CreatedResult = class
inherit ObjectResult
Public Class CreatedResult
Inherits ObjectResult
- Inheritance
- Attributes
Constructors
CreatedResult() |
Initializes a new instance of the CreatedResult class |
CreatedResult(String, Object) |
Initializes a new instance of the CreatedResult class with the values provided. |
CreatedResult(Uri, Object) |
Initializes a new instance of the CreatedResult class with the values provided. |
Properties
ContentTypes |
Gets or sets the MediaTypeCollection. (Inherited from ObjectResult) |
DeclaredType |
Gets or sets the declared type. (Inherited from ObjectResult) |
Formatters |
The collection of IOutputFormatter. (Inherited from ObjectResult) |
Location |
Gets or sets the location at which the content has been created. |
StatusCode |
Gets or sets the HTTP status code. (Inherited from ObjectResult) |
Value |
The object result. (Inherited from ObjectResult) |
Methods
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) |
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. (Inherited from ObjectResult) |
OnFormatting(ActionContext) |
This method is called before the formatter writes to the output stream. |