UriPathExtensionMapping Constructor (String, String)

Initializes a new instance of the UriPathExtensionMapping class.

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

public UriPathExtensionMapping(
	string uriPathExtension,
	string mediaType
)

Parameters

uriPathExtension
Type: System.String
The extension corresponding to mediaType. This value should not include a dot or wildcards.
mediaType
Type: System.String
The media type that will be returned if uriPathExtension is matched.
Show: