ControllerBase.CreatedAtRoute ControllerBase.CreatedAtRoute ControllerBase.CreatedAtRoute Method

Definition

Overloads

CreatedAtRoute(String, Object) CreatedAtRoute(String, Object) CreatedAtRoute(String, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(String, Object, Object) CreatedAtRoute(String, Object, Object) CreatedAtRoute(String, Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(Object, Object) CreatedAtRoute(Object, Object) CreatedAtRoute(Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(String, Object) CreatedAtRoute(String, Object) CreatedAtRoute(String, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

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

Parameters

routeName
String String String

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

value
Object Object Object

The content value to format in the entity body.

Returns

CreatedAtRoute(String, Object, Object) CreatedAtRoute(String, Object, Object) CreatedAtRoute(String, Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.CreatedAtRouteResult CreatedAtRoute (string routeName, object routeValues, object value);
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, value 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.

value
Object Object Object

The content value to format in the entity body.

Returns

CreatedAtRoute(Object, Object) CreatedAtRoute(Object, Object) CreatedAtRoute(Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

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

Parameters

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

Applies to