Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MediaTypeFormatterExtensions Class

Represents extensions for adding MediaTypeMapping items to a MediaTypeFormatter.

System::Object
  System.Net.Http.Formatting::MediaTypeFormatterExtensions

Namespace:  System.Net.Http.Formatting
Assemblies:   System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
  System.Web.Http (in System.Web.Http.dll)
[ExtensionAttribute]
public ref class MediaTypeFormatterExtensions abstract sealed
  NameDescription
Public methodStatic memberAddQueryStringMapping(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 memberAddQueryStringMapping(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 memberAddRequestHeaderMapping(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 memberAddRequestHeaderMapping(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 memberAddUriPathExtensionMapping(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 memberAddUriPathExtensionMapping(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
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.