ApiController.Created ApiController.Created ApiController.Created Method

Definition

Overloads

Created(String, Object) Created(String, Object) Created(String, Object)

Creates a CreatedResult (201 Created) with the specified values.

Created(Uri, Object) Created(Uri, Object)

Creates a CreatedResult (201 Created) with the specified values.

Created(String, Object) Created(String, Object) Created(String, Object)

Creates a CreatedResult (201 Created) with the specified values.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string location, object content);
abstract member Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : string * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
Public Overridable Function Created (location As String, content As Object) As CreatedResult

Parameters

location
String String String

The location at which the content has been created. Must be a relative or absolute URL.

content
Object Object Object

The content value to format in the entity body.

Returns

Created(Uri, Object) Created(Uri, Object)

Creates a CreatedResult (201 Created) with the specified values.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (Uri uri, object content);
abstract member Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult
override this.Created : Uri * obj -> Microsoft.AspNetCore.Mvc.CreatedResult

Parameters

uri
Uri Uri Uri

The location at which the content has been created.

content
Object Object Object

The content value to format in the entity body.

Returns

Applies to