ApiController.CreatedAtRoute Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | CreatedAtRoute(Of T)(String, IDictionary(Of String, Object), T) | Creates a CreatedAtRouteNegotiatedContentResult(Of T) (201 Created) with the specified values. |
![]() | CreatedAtRoute(Of T)(String, Object, T) | Creates a CreatedAtRouteNegotiatedContentResult(Of T) (201 Created) with the specified values. |
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.
Return Value
Type: System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult(Of T)A CreatedAtRouteNegotiatedContentResult(Of T) with the specified values.
Type Parameters
- T
The type of content in the entity body.
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.
Return Value
Type: System.Web.Http.Results.CreatedAtRouteNegotiatedContentResult(Of T)A CreatedAtRouteNegotiatedContentResult(Of T) with the specified values.
Type Parameters
- T
The type of content in the entity body.
