Export (0) Print
Expand All

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)

protected virtual MediaTypeFormatterMatch UpdateBestMatch(
	MediaTypeFormatterMatch current,
	MediaTypeFormatterMatch potentialReplacement
)

Parameters

current
Type: System.Net.Http.Formatting.MediaTypeFormatterMatch

The current match.

potentialReplacement
Type: System.Net.Http.Formatting.MediaTypeFormatterMatch

The match to evaluate against the current match.

Return Value

Type: System.Net.Http.Formatting.MediaTypeFormatterMatch
Returns whichever MediaTypeFormatterMatch object is a better match.
Show:
© 2014 Microsoft