Export (0) Print
Expand All

MediaTypeFormatterMatch Constructor

Initializes a new instance of the MediaTypeFormatterMatch class.

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

public MediaTypeFormatterMatch(
	MediaTypeFormatter formatter,
	MediaTypeHeaderValue mediaType,
	Nullable<double> quality,
	MediaTypeFormatterMatchRanking ranking
)

Parameters

formatter
Type: System.Net.Http.Formatting.MediaTypeFormatter

The matching formatter.

mediaType
Type: MediaTypeHeaderValue

The media type. Can be null in which case the media type application/octet-stream is used.

quality
Type: System.Nullable<Double>

The quality of the match. Can be null in which case it is considered a full match with a value of 1.0

ranking
Type: System.Net.Http.Formatting.MediaTypeFormatterMatchRanking

The kind of match.

Show:
© 2014 Microsoft