ControllerBase.CreatedAtAction ControllerBase.CreatedAtAction ControllerBase.CreatedAtAction Method

Definition

Overloads

CreatedAtAction(String, Object, Object) CreatedAtAction(String, Object, Object) CreatedAtAction(String, Object, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

CreatedAtAction(String, String, Object, Object) CreatedAtAction(String, String, Object, Object) CreatedAtAction(String, String, Object, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

CreatedAtAction(String, Object) CreatedAtAction(String, Object) CreatedAtAction(String, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

CreatedAtAction(String, Object, Object) CreatedAtAction(String, Object, Object) CreatedAtAction(String, Object, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

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

Parameters

actionName
String String String

The name of the action to use for generating the URL.

routeValues
Object Object Object

The route data to use for generating the URL.

value
Object Object Object

The content value to format in the entity body.

Returns

CreatedAtAction(String, String, Object, Object) CreatedAtAction(String, String, Object, Object) CreatedAtAction(String, String, Object, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtActionResult CreatedAtAction (string actionName, string controllerName, object routeValues, object value);
abstract member CreatedAtAction : string * string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
override this.CreatedAtAction : string * string * obj * obj -> Microsoft.AspNetCore.Mvc.CreatedAtActionResult
Public Overridable Function CreatedAtAction (actionName As String, controllerName As String, routeValues As Object, value As Object) As CreatedAtActionResult

Parameters

actionName
String String String

The name of the action to use for generating the URL.

controllerName
String String String

The name of the controller to use for generating the URL.

routeValues
Object Object Object

The route data to use for generating the URL.

value
Object Object Object

The content value to format in the entity body.

Returns

CreatedAtAction(String, Object) CreatedAtAction(String, Object) CreatedAtAction(String, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

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

Parameters

actionName
String String String

The name of the action to use for generating the URL.

value
Object Object Object

The content value to format in the entity body.

Returns

Applies to