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.
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
| Member name | Description | |
|---|---|---|
| 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 |
Show: