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.
Returns a value indicating whether the current RequestHeaderMapping instance can return a MediaTypeHeaderValue from request.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
public override double TryMatchMediaType(
HttpRequestMessage request
)
public:
virtual double TryMatchMediaType(
HttpRequestMessage^ request
) override
override TryMatchMediaType :
request:HttpRequestMessage -> float
Public Overrides Function TryMatchMediaType (
request As HttpRequestMessage
) As Double
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe HttpRequestMessage to check.
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.
See Also
RequestHeaderMapping Class
System.Net.Http.Formatting Namespace
Return to top