ContentNegotiationResult Constructor (MediaTypeFormatter, MediaTypeHeaderValue)

 

Create the content negotiation result object.

Namespace:   System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public ContentNegotiationResult(
	MediaTypeFormatter formatter,
	MediaTypeHeaderValue mediaType
)

Parameters

formatter
Type: System.Net.Http.Formatting.MediaTypeFormatter

The formatter.

mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValue

The preferred media type. Can be null.

Return to top
Show: