The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
MediaTypeMapping::TryMatchMediaType Method (HttpRequestMessage^)
Returns the quality of the match of the MediaTypeHeaderValue associated with request.
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
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::DoubleThe 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.
Show: