ControllerBase.CreatedAtRoute Method

Definition

Overloads

CreatedAtRoute(String, Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(String, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(String, Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

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

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

routeValues
Object

The route data to use for generating the URL.

value
Object

The content value to format in the entity body.

Returns

CreatedAtRouteResult

The created CreatedAtRouteResult for the response.

Attributes

Applies to

CreatedAtRoute(String, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

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

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

value
Object

The content value to format in the entity body.

Returns

CreatedAtRouteResult

The created CreatedAtRouteResult for the response.

Attributes

Applies to

CreatedAtRoute(Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

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

The route data to use for generating the URL.

value
Object

The content value to format in the entity body.

Returns

CreatedAtRouteResult

The created CreatedAtRouteResult for the response.

Attributes

Applies to