DefaultContentNegotiator.UpdateBestMatch Method
Evaluates whether a match is better than the current match.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Protected Overridable Function UpdateBestMatch ( _
current As MediaTypeFormatterMatch, _
potentialReplacement As MediaTypeFormatterMatch _
) As MediaTypeFormatterMatch
'Usage
Dim current As MediaTypeFormatterMatch
Dim potentialReplacement As MediaTypeFormatterMatch
Dim returnValue As MediaTypeFormatterMatch
returnValue = Me.UpdateBestMatch(current, _
potentialReplacement)
protected virtual MediaTypeFormatterMatch UpdateBestMatch(
MediaTypeFormatterMatch current,
MediaTypeFormatterMatch potentialReplacement
)
protected:
virtual MediaTypeFormatterMatch^ UpdateBestMatch(
MediaTypeFormatterMatch^ current,
MediaTypeFormatterMatch^ potentialReplacement
)
abstract UpdateBestMatch :
current:MediaTypeFormatterMatch *
potentialReplacement:MediaTypeFormatterMatch -> MediaTypeFormatterMatch
override UpdateBestMatch :
current:MediaTypeFormatterMatch *
potentialReplacement:MediaTypeFormatterMatch -> MediaTypeFormatterMatch
protected function UpdateBestMatch(
current : MediaTypeFormatterMatch,
potentialReplacement : MediaTypeFormatterMatch
) : MediaTypeFormatterMatch
Parameters
current
Type: System.Net.Http.Formatting.MediaTypeFormatterMatchThe current match.
potentialReplacement
Type: System.Net.Http.Formatting.MediaTypeFormatterMatchThe match to evaluate against the current match.
Return Value
Type: System.Net.Http.Formatting.MediaTypeFormatterMatch
Returns whichever MediaTypeFormatterMatch object is a better match.