C# Class MvcApi.Formatting.MediaTypeFormatterMatch

ファイルを表示 Open project: dax70/MvcApi Class Usage Examples

Public Methods

Method Description
MediaTypeFormatterMatch ( MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType, double quality, MediaTypeFormatterMatchRanking ranking ) : System

Initializes a new instance of the MediaTypeFormatterMatch class.

MediaTypeFormatterMatch ( MediaTypeHeaderValue mediaType ) : System
MediaTypeFormatterMatch ( MediaTypeHeaderValue mediaType, double quality ) : System

Method Details

MediaTypeFormatterMatch() public method

Initializes a new instance of the MediaTypeFormatterMatch class.
public MediaTypeFormatterMatch ( MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType, double quality, MediaTypeFormatterMatchRanking ranking ) : System
formatter MediaTypeFormatter The matching formatter.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type. Can be null in which case the media type application/octet-stream is used.
quality 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 MediaTypeFormatterMatchRanking The kind of match.
return System

MediaTypeFormatterMatch() public method

public MediaTypeFormatterMatch ( MediaTypeHeaderValue mediaType ) : System
mediaType System.Net.Http.Headers.MediaTypeHeaderValue
return System

MediaTypeFormatterMatch() public method

public MediaTypeFormatterMatch ( MediaTypeHeaderValue mediaType, double quality ) : System
mediaType System.Net.Http.Headers.MediaTypeHeaderValue
quality double
return System