ControllerBase.Created Method

Definition

Overloads

Created(String, Object)

Creates a CreatedResult object that produces a Status201Created response.

Created(Uri, Object)

Creates a CreatedResult object that produces a Status201Created response.

Created(String, Object)

Creates a CreatedResult object that produces a Status201Created response.

public:
 virtual Microsoft::AspNetCore::Mvc::CreatedResult ^ Created(System::String ^ uri, System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedResult Created (string uri, object value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

The URI at which the content has been created.

value
Object

The content value to format in the entity body.

Returns

CreatedResult

The created CreatedResult for the response.

Attributes

Applies to

Created(Uri, Object)

Creates a CreatedResult object that produces a Status201Created response.

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

Parameters

uri
Uri

The URI at which the content has been created.

value
Object

The content value to format in the entity body.

Returns

CreatedResult

The created CreatedResult for the response.

Attributes

Applies to