ApiController.CreatedAtRoute(String, Object, Object) ApiController.CreatedAtRoute(String, Object, Object) ApiController.CreatedAtRoute(String, Object, Object) Method

Definition

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

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

Parameters

routeName
String String String

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

routeValues
Object Object Object

The route data to use for generating the URL.

content
Object Object Object

The content value to format in the entity body.

Returns

Applies to