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

XmlHttpRequestHeaderMapping Class

A RequestHeaderMapping that maps the X-Requested-With http header field set by AJAX XmlHttpRequest (XHR) to the media type application/json if no explicit Accept header fields are present in the request.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
public class XmlHttpRequestHeaderMapping : RequestHeaderMapping

The XmlHttpRequestHeaderMapping type exposes the following members.

  NameDescription
Public methodXmlHttpRequestHeaderMapping Initializes a new instance of XmlHttpRequestHeaderMapping class
Top
  NameDescription
Public propertyHeaderName Gets the name of the header to match. (Inherited from RequestHeaderMapping.)
Public propertyHeaderValue Gets the header value to match. (Inherited from RequestHeaderMapping.)
Public propertyHeaderValueComparison Gets the StringComparison to use when matching [M:HeaderValue]. (Inherited from RequestHeaderMapping.)
Public propertyIsValueSubstring Gets a value indicating whether [M:HeaderValue] is a matched as a substring of the actual header value. this instance is value substring. (Inherited from RequestHeaderMapping.)
Public propertyMediaType Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTryMatchMediaType Returns a value indicating whether the current RequestHeaderMapping instance can return a MediaTypeHeaderValue from request. (Overrides RequestHeaderMapping.TryMatchMediaType(HttpRequestMessage).)
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.