ControllerBase.Created ControllerBase.Created ControllerBase.Created Method

Definition

Overloads

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

Creates a CreatedResult object that produces a Status201Created response.

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

Creates a CreatedResult object that produces a Status201Created response.

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

Creates a CreatedResult object that produces a Status201Created response.

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

Parameters

uri
Uri Uri Uri

The URI at which the content has been created.

value
Object Object Object

The content value to format in the entity body.

Returns

The created CreatedResult for the response.

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

Creates a CreatedResult object that produces a Status201Created response.

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

Parameters

uri
String String String

The URI at which the content has been created.

value
Object Object Object

The content value to format in the entity body.

Returns

The created CreatedResult for the response.

Applies to