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