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.

CreatedAtRouteNegotiatedContentResult<T> Constructor

 

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

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

public:
CreatedAtRouteNegotiatedContentResult(
	String^ routeName,
	IDictionary<String^, Object^>^ routeValues,
	T content,
	ApiController^ controller
)

Parameters

routeName
Type: System::String^

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

routeValues
Type: System.Collections.Generic::IDictionary<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.

controller
Type: System.Web.Http::ApiController^

The controller from which to obtain the dependencies needed for execution.

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.

public:
CreatedAtRouteNegotiatedContentResult(
	String^ routeName,
	IDictionary<String^, Object^>^ routeValues,
	T content,
	UrlHelper^ urlFactory,
	IContentNegotiator^ contentNegotiator,
	HttpRequestMessage^ request,
	IEnumerable<MediaTypeFormatter^>^ formatters
)

Parameters

routeName
Type: System::String^

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

routeValues
Type: System.Collections.Generic::IDictionary<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.

urlFactory
Type: System.Web.Http.Routing::UrlHelper^

The factory to use to generate the route URL.

contentNegotiator
Type: System.Net.Http.Formatting::IContentNegotiator^

The content negotiator to handle content negotiation.

request
Type: System.Net.Http::HttpRequestMessage^

The request message which led to this result.

formatters
Type: System.Collections.Generic::IEnumerable<MediaTypeFormatter^>^

The formatters to use to negotiate and format the content.

Return to top
Show: