CreatedAtRouteNegotiatedContentResult<T> Constructor

 

Namespace:   System.Web.Http.Results
Assembly:  System.Web.Http (in System.Web.Http.dll)

Overload List

Name Description
System_CAPS_pubmethod CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, ApiController)

Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided.

System_CAPS_pubmethod CreatedAtRouteNegotiatedContentResult<T>(String, IDictionary<String, Object>, T, UrlHelper, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided.

See Also

CreatedAtRouteNegotiatedContentResult<T> Class
System.Web.Http.Results Namespace

Return to top

CreatedAtRouteNegotiatedContentResult<T> Constructor (String, IDictionary<String, Object>, T, ApiController)

Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided.

Syntax

public CreatedAtRouteNegotiatedContentResult(
    string routeName,
    IDictionary<string, object> routeValues,
    T content,
    ApiController controller
)
public:
CreatedAtRouteNegotiatedContentResult(
    String^ routeName,
    IDictionary<String^, Object^>^ routeValues,
    T content,
    ApiController^ controller
)
new : 
        routeName:string *
        routeValues:IDictionary<string, Object> *
        content:'T *
        controller:ApiController -> CreatedAtRouteNegotiatedContentResult
Public Sub New (
    routeName As String,
    routeValues As IDictionary(Of String, Object),
    content As T,
    controller As ApiController
)

Parameters

  • routeName
    Type: System.String

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

  • content
    Type: T

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

Return to top

CreatedAtRouteNegotiatedContentResult<T> Constructor (String, IDictionary<String, Object>, T, UrlHelper, IContentNegotiator, HttpRequestMessage, IEnumerable<MediaTypeFormatter>)

Initializes a new instance of the CreatedAtRouteNegotiatedContentResult<T> class with the values provided.

Syntax

public CreatedAtRouteNegotiatedContentResult(
    string routeName,
    IDictionary<string, object> routeValues,
    T content,
    UrlHelper urlFactory,
    IContentNegotiator contentNegotiator,
    HttpRequestMessage request,
    IEnumerable<MediaTypeFormatter> formatters
)
public:
CreatedAtRouteNegotiatedContentResult(
    String^ routeName,
    IDictionary<String^, Object^>^ routeValues,
    T content,
    UrlHelper^ urlFactory,
    IContentNegotiator^ contentNegotiator,
    HttpRequestMessage^ request,
    IEnumerable<MediaTypeFormatter^>^ formatters
)
new : 
        routeName:string *
        routeValues:IDictionary<string, Object> *
        content:'T *
        urlFactory:UrlHelper *
        contentNegotiator:IContentNegotiator *
        request:HttpRequestMessage *
        formatters:IEnumerable<MediaTypeFormatter> -> CreatedAtRouteNegotiatedContentResult
Public Sub New (
    routeName As String,
    routeValues As IDictionary(Of String, Object),
    content As T,
    urlFactory As UrlHelper,
    contentNegotiator As IContentNegotiator,
    request As HttpRequestMessage,
    formatters As IEnumerable(Of MediaTypeFormatter)
)

Parameters

  • routeName
    Type: System.String

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

  • content
    Type: T

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

Return to top