Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Enumeration MediaTypeFormatterMatchRanking
'Usage
Dim instance As MediaTypeFormatterMatchRanking
public enum MediaTypeFormatterMatchRanking
public enum class MediaTypeFormatterMatchRanking
type MediaTypeFormatterMatchRanking
public enum MediaTypeFormatterMatchRanking
Members
Member name | Description | |
---|---|---|
None | No match was found | |
MatchOnCanWriteType | Matched on a type, meaning that the formatter is able to serialize the type. | |
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/*”. | |
MatchOnRequestAcceptHeaderAllMediaRange | Matched on an explicit “*/*” range in the Accept header. | |
MatchOnRequestWithMediaTypeMapping | Matched on HttpRequestMessage after having applied the various MediaTypeMappings. | |
MatchOnRequestMediaType | Matched on the media type of the entity body in the HTTP request message. |