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>
Inheritance Hierarchy
System.Object
  System.Net.Http.Formatting.MediaTypeMapping
    System.Net.Http.Formatting.RequestHeaderMapping
      System.Net.Http.Formatting.XmlHttpRequestHeaderMapping
Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Class RequestHeaderMapping _
    Inherits MediaTypeMapping
'Usage
Dim instance As RequestHeaderMapping
public class RequestHeaderMapping : MediaTypeMapping
public ref class RequestHeaderMapping : public MediaTypeMapping
type RequestHeaderMapping =  
    class
        inherit MediaTypeMapping
    end
public class RequestHeaderMapping extends MediaTypeMapping
The RequestHeaderMapping type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | RequestHeaderMapping(String, String, StringComparison, Boolean, MediaTypeHeaderValue) | Initializes a new instance of the RequestHeaderMapping class. | 
| .jpeg) | RequestHeaderMapping(String, String, StringComparison, Boolean, String) | Initializes a new instance of the RequestHeaderMapping class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | HeaderName | Gets the name of the header to match. | 
| .jpeg) | HeaderValue | Gets the header value to match. | 
| .jpeg) | HeaderValueComparison | Gets the StringComparison to use when matching [M:HeaderValue]. | 
| .jpeg) | IsValueSubstring | Gets a value indicating whether [M:HeaderValue] is a matched as a substring of the actual header value. this instance is value substring. | 
| .jpeg) | MediaType | Gets the MediaTypeHeaderValue that is associated with HttpRequestMessage or HttpResponseMessage instances that have the given characteristics of the MediaTypeMapping. (Inherited from MediaTypeMapping.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | Finalize | (Inherited from Object.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone | (Inherited from Object.) | 
| .jpeg) | ToString | (Inherited from Object.) | 
| .jpeg) | TryMatchMediaType | Returns a value indicating whether the current RequestHeaderMapping instance can return a MediaTypeHeaderValue from request. (Overrides MediaTypeMapping.TryMatchMediaType(HttpRequestMessage).) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.