Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Implemented in a derived class to determine if the HttpResponseMessage should be associated with the MediaTypeHeaderValue of the MediaTypeMapping.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Protected MustOverride Function OnTryMatchMediaType ( _
response As HttpResponseMessage _
) As Double
protected abstract double OnTryMatchMediaType(
HttpResponseMessage response
)
protected:
virtual double OnTryMatchMediaType(
HttpResponseMessage^ response
) abstract
abstract OnTryMatchMediaType :
response:HttpResponseMessage -> float
protected abstract function OnTryMatchMediaType(
response : HttpResponseMessage
) : double
Parameters
- response
Type: System.Net.Http.HttpResponseMessage
The HttpResponseMessage to evaluate for the characteristics associated with the MediaTypeHeaderValue of the MediaTypeMapping.
Return Value
Type: System.Double
The quality of the match. It must be between 0.0 and 1.0. A value of 0.0 signifies no match. A value of 1.0 signifies a complete match.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.