MediaTypeFormatterExtensions Methods

Include Protected Members
Include Inherited Members

Methods

  Name Description
Public methodStatic member AddQueryStringMapping(MediaTypeFormatter, String, String, MediaTypeHeaderValue) Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with Uris containing a specific query parameter and value.
Public methodStatic member AddQueryStringMapping(MediaTypeFormatter, String, String, String) Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with Uris containing a specific query parameter and value.
Public methodStatic member AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue) Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with a specific HTTP request header field with a specific value.
Public methodStatic member AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, String) Updates the given set of formatter of MediaTypeMapping elements so that it associates the mediaType with a specific HTTP request header field with a specific value.
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