Export (0) Print
Expand All

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)

'Declaration
Public Class XmlHttpRequestHeaderMapping _
	Inherits RequestHeaderMapping
'Usage
Dim instance As XmlHttpRequestHeaderMapping

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.
Show:
© 2014 Microsoft