MediaTypeFormatter.GetPerRequestFormatterInstance Method (Type, HttpRequestMessage, MediaTypeHeaderValue)

 

Returns a specialized instance of the MediaTypeFormatter that can format a response for the given parameters.

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

abstract GetPerRequestFormatterInstance : 
        type:Type *
        request:HttpRequestMessage *
        mediaType:MediaTypeHeaderValue -> MediaTypeFormatter
override GetPerRequestFormatterInstance : 
        type:Type *
        request:HttpRequestMessage *
        mediaType:MediaTypeHeaderValue -> MediaTypeFormatter

Parameters

type
Type: System.Type

The type to format.

request
Type: System.Net.Http.HttpRequestMessage

The request.

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

The media type.

Return to top
Show: