Partager via


MediaTypeFormatterExtensions.AddUriPathExtensionMapping Method

Include Protected Members
Include Inherited Members

Updates the given formatter's set of MediaTypeMapping elements so that it associates the mediaType with Uris ending with the given uriPathExtension.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member AddUriPathExtensionMapping(MediaTypeFormatter, String, MediaTypeHeaderValue) Updates the given formatter's set of MediaTypeMapping elements so that it associates the mediaType with Uris ending with the given uriPathExtension.
Public methodStatic member AddUriPathExtensionMapping(MediaTypeFormatter, String, String) Updates the given formatter's set of MediaTypeMapping elements so that it associates the mediaType with Uris ending with the given uriPathExtension.

Top

See Also

Reference

MediaTypeFormatterExtensions Class

System.Net.Http.Formatting Namespace