UriPathExtensionMapping.TryMatchMediaType Method

Returns a value indicating whether this UriPathExtensionMapping instance can provide a MediaTypeHeaderValue for the Uri of request.

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

public override double TryMatchMediaType(
	HttpRequestMessage request
)

Parameters

request
Type: HttpRequestMessage

The HttpRequestMessage to check.

Return Value

Type: System.Double
If this instance can match a file extension in request it returns 1.0 otherwise 0.0.
Show: