DefaultContentNegotiator.SelectResponseMediaTypeFormatter Method
Selects the best match among the candidate matches found.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Protected Overridable Function SelectResponseMediaTypeFormatter ( _
matches As ICollection(Of MediaTypeFormatterMatch) _
) As MediaTypeFormatterMatch
'Usage
Dim matches As ICollection(Of MediaTypeFormatterMatch)
Dim returnValue As MediaTypeFormatterMatch
returnValue = Me.SelectResponseMediaTypeFormatter(matches)
protected virtual MediaTypeFormatterMatch SelectResponseMediaTypeFormatter(
ICollection<MediaTypeFormatterMatch> matches
)
protected:
virtual MediaTypeFormatterMatch^ SelectResponseMediaTypeFormatter(
ICollection<MediaTypeFormatterMatch^>^ matches
)
abstract SelectResponseMediaTypeFormatter :
matches:ICollection<MediaTypeFormatterMatch> -> MediaTypeFormatterMatch
override SelectResponseMediaTypeFormatter :
matches:ICollection<MediaTypeFormatterMatch> -> MediaTypeFormatterMatch
protected function SelectResponseMediaTypeFormatter(
matches : ICollection<MediaTypeFormatterMatch>
) : MediaTypeFormatterMatch
Parameters
matches
Type: System.Collections.Generic.ICollection<MediaTypeFormatterMatch>The collection of matches.
Return Value
Type: System.Net.Http.Formatting.MediaTypeFormatterMatch
Returns the MediaTypeFormatterMatch object that represents the best match.