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 HttpRequestMessage 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 ( _
request As HttpRequestMessage _
) As Double
protected abstract double OnTryMatchMediaType(
HttpRequestMessage request
)
protected:
virtual double OnTryMatchMediaType(
HttpRequestMessage^ request
) abstract
abstract OnTryMatchMediaType :
request:HttpRequestMessage -> float
protected abstract function OnTryMatchMediaType(
request : HttpRequestMessage
) : double
Parameters
- request
Type: System.Net.Http.HttpRequestMessage
The HttpRequestMessage 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.