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)
Syntax
'Declaration
Public Sub New ( _
formatter As MediaTypeFormatter, _
mediaType As MediaTypeHeaderValue, _
quality As Nullable(Of Double), _
ranking As MediaTypeFormatterMatchRanking _
)
'Usage
Dim formatter As MediaTypeFormatter
Dim mediaType As MediaTypeHeaderValue
Dim quality As Nullable(Of Double)
Dim ranking As MediaTypeFormatterMatchRanking
Dim instance As New MediaTypeFormatterMatch(formatter, _
mediaType, quality, ranking)
public MediaTypeFormatterMatch(
MediaTypeFormatter formatter,
MediaTypeHeaderValue mediaType,
Nullable<double> quality,
MediaTypeFormatterMatchRanking ranking
)
public:
MediaTypeFormatterMatch(
MediaTypeFormatter^ formatter,
MediaTypeHeaderValue^ mediaType,
Nullable<double> quality,
MediaTypeFormatterMatchRanking ranking
)
new :
formatter:MediaTypeFormatter *
mediaType:MediaTypeHeaderValue *
quality:Nullable<float> *
ranking:MediaTypeFormatterMatchRanking -> MediaTypeFormatterMatch
public function MediaTypeFormatterMatch(
formatter : MediaTypeFormatter,
mediaType : MediaTypeHeaderValue,
quality : Nullable<double>,
ranking : MediaTypeFormatterMatchRanking
)
Parameters
formatter
Type: System.Net.Http.Formatting.MediaTypeFormatterThe matching formatter.
mediaType
Type: MediaTypeHeaderValueThe 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.MediaTypeFormatterMatchRankingThe kind of match.