CreatedNegotiatedContentResult<T> Constructor
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | CreatedNegotiatedContentResult<T>(Uri^, T, ApiController^) | Initializes a new instance of the CreatedNegotiatedContentResult<T> class with the values provided. |
![]() | CreatedNegotiatedContentResult<T>(Uri^, T, IContentNegotiator^, HttpRequestMessage^, IEnumerable<MediaTypeFormatter^>^) | Initializes a new instance of the OkNegotiatedContentResult<T> class with the values provided. |
CreatedNegotiatedContentResult<T> Constructor (Uri^, T, ApiController^)
Initializes a new instance of the CreatedNegotiatedContentResult<T> class with the values provided.
public:
CreatedNegotiatedContentResult(
Uri^ location,
T content,
ApiController^ controller
)
Parameters
- location
-
Type:
System::Uri^
The location at which the content has been created.
- 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.
CreatedNegotiatedContentResult<T> Constructor (Uri^, T, IContentNegotiator^, HttpRequestMessage^, IEnumerable<MediaTypeFormatter^>^)
Initializes a new instance of the OkNegotiatedContentResult<T> class with the values provided.
public:
CreatedNegotiatedContentResult(
Uri^ location,
T content,
IContentNegotiator^ contentNegotiator,
HttpRequestMessage^ request,
IEnumerable<MediaTypeFormatter^>^ formatters
)
Parameters
- location
-
Type:
System::Uri^
The content value to negotiate and format in the entity body.
- content
-
Type:
T
The location at which the content has been created.
- 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.
