Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApiController.CreatedAtRoute Method

 

ApiController.CreatedAtRoute(Of T) Method (String, IDictionary(Of String, Object), T)

Creates a CreatedAtRouteNegotiatedContentResult(Of T) (201 Created) with the specified values.

Protected Friend Overridable Function CreatedAtRoute(Of T) (
	routeName As String,
	routeValues As IDictionary(Of String, Object),
	content As T
) As CreatedAtRouteNegotiatedContentResult(Of T)

Parameters

routeName
Type: System.String

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

routeValues
Type: System.Collections.Generic.IDictionary(Of String, Object)

The route data to use for generating the URL.

content
Type: T

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

Type Parameters

T

The type of content in the entity body.

Return to top

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

Creates a CreatedAtRouteNegotiatedContentResult(Of T) (201 Created) with the specified values.

Protected Friend Function CreatedAtRoute(Of T) (
	routeName As String,
	routeValues As Object,
	content As T
) As CreatedAtRouteNegotiatedContentResult(Of T)

Parameters

routeName
Type: System.String

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

routeValues
Type: System.Object

The route data to use for generating the URL.

content
Type: T

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

Type Parameters

T

The type of content in the entity body.

Return to top
Show: