Web API Core | ComponentOne
C1.Web.Api Namespace / C1ApiController Class / CreatedAtRoute Method / CreatedAtRoute(String,Object,Object) Method
The name of the route to use for generating the URL.
The route data to use for generating the URL.
The content value to format in the entity body.

In This Topic
    CreatedAtRoute(String,Object,Object) Method
    In This Topic
    Creates a Microsoft.AspNetCore.Mvc.CreatedAtRouteResult object that produces a Created (201) response.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides Function CreatedAtRoute( _
       ByVal routeName As String, _
       ByVal routeValues As Object, _
       ByVal value As Object _
    ) As CreatedAtRouteResult
    public override CreatedAtRouteResult CreatedAtRoute( 
       string routeName,
       object routeValues,
       object value
    )

    Parameters

    routeName
    The name of the route to use for generating the URL.
    routeValues
    The route data to use for generating the URL.
    value
    The content value to format in the entity body.

    Return Value

    The created Microsoft.AspNetCore.Mvc.CreatedAtRouteResult for the response.
    See Also