[]
        
(Showing Draft Content)

C1.Web.Api.C1ApiController.CreatedAtRoute

CreatedAtRoute Method

CreatedAtRoute<T>(string, IDictionary<string, object>, T)

Creates a System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult`1 (201 Created) with the specified values.

Declaration
protected override CreatedAtRouteNegotiatedContentResult<T> CreatedAtRoute<T>(string routeName, IDictionary<string, object> routeValues, T content)
Protected Overrides Function CreatedAtRoute(Of T)(routeName As String, routeValues As IDictionary(Of String, Object), content As T) As CreatedAtRouteNegotiatedContentResult(Of T)
Parameters
Type Name Description
string routeName

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

IDictionary<string, object> routeValues

The route data to use for generating the URL.

T content

The content value to negotiate and format in the entity body.

Returns
Type Description
CreatedAtRouteNegotiatedContentResult<T>

A System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult`1 with the specified values.

Type Parameters
Name Description
T

The type of content in the entity body.