TryMatchMediaType Method
Collapse the table of content
Expand the table of content

QueryStringMapping.TryMatchMediaType Method

Returns a value indicating whether the current QueryStringMapping instance can return a MediaTypeHeaderValue from request.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public override double TryMatchMediaType(
	HttpRequestMessage request


Type: HttpRequestMessage

The HttpRequestMessage to check.

Return Value

Type: System.Double
If this instance can produce a MediaTypeHeaderValue from request it returns 1.0 otherwise 0.0.
© 2016 Microsoft