Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RequestHeaderMapping Class

This class provides a mapping from an arbitrary HTTP request header field to a MediaTypeHeaderValue used to select MediaTypeFormatter instances for handling the entity body of an HttpRequestMessage or HttpResponseMessage. <remarks>This class only checks header fields associated with Headers for a match. It does not check header fields associated with Headers or Headers instances.</remarks>

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

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

The RequestHeaderMapping type exposes the following members.

  NameDescription
Public methodRequestHeaderMapping(String, String, StringComparison, Boolean, MediaTypeHeaderValue) Initializes a new instance of the RequestHeaderMapping class.
Public methodRequestHeaderMapping(String, String, StringComparison, Boolean, String) Initializes a new instance of the RequestHeaderMapping class.
Top

  NameDescription
Public propertyHeaderName Gets the name of the header to match.
Public propertyHeaderValue Gets the header value to match.
Public propertyHeaderValueComparison Gets the StringComparison to use when matching [M:HeaderValue].
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.
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 MediaTypeMapping.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:
© 2015 Microsoft