Share via


DefaultContentNegotiator.MatchMediaTypeMapping Method (HttpRequestMessage, MediaTypeFormatter)

 

Matches a request against the MediaTypeMapping objects in a media-type formatter.

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

Syntax

protected virtual MediaTypeFormatterMatch MatchMediaTypeMapping(
    HttpRequestMessage request,
    MediaTypeFormatter formatter
)
protected:
virtual MediaTypeFormatterMatch^ MatchMediaTypeMapping(
    HttpRequestMessage^ request,
    MediaTypeFormatter^ formatter
)
abstract MatchMediaTypeMapping : 
        request:HttpRequestMessage *
        formatter:MediaTypeFormatter -> MediaTypeFormatterMatch
override MatchMediaTypeMapping : 
        request:HttpRequestMessage *
        formatter:MediaTypeFormatter -> MediaTypeFormatterMatch
Protected Overridable Function MatchMediaTypeMapping (
    request As HttpRequestMessage,
    formatter As MediaTypeFormatter
) As MediaTypeFormatterMatch

Parameters

Return Value

Type: System.Net.Http.Formatting.MediaTypeFormatterMatch

Returns a MediaTypeFormatterMatch object that indicates the quality of the match, or null if there is no match.

See Also

DefaultContentNegotiator Class
System.Net.Http.Formatting Namespace

Return to top