Information
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.

MediaTypeFormatterMatchRanking Enumeration

 

Contains information about the degree to which a MediaTypeFormatter matches the explicit or implicit preferences found in an incoming request.

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

public enum class MediaTypeFormatterMatchRanking

Member nameDescription
MatchOnCanWriteType

Matched on a type, meaning that the formatter is able to serialize the type.

MatchOnRequestAcceptHeaderAllMediaRange

Matched on an explicit “*/*” range in the Accept header.

MatchOnRequestAcceptHeaderLiteral

Matched on an explicit literal accept header, such as “application/json”.

MatchOnRequestAcceptHeaderSubtypeMediaRange

Matched on an explicit subtype range in an Accept header, such as “application/*”.

MatchOnRequestMediaType

Matched on the media type of the entity body in the HTTP request message.

MatchOnRequestWithMediaTypeMapping

Matched on HttpRequestMessage after having applied the various MediaTypeMappings.

None

No match was found

Return to top
Show: