The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
MediaTypeFormatterExtensions.AddRequestHeaderMapping Method
Namespace:
System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
MediaTypeFormatterExtensions.AddRequestHeaderMapping Method (MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue)
public static void AddRequestHeaderMapping( this MediaTypeFormatter formatter, string headerName, string headerValue, StringComparison valueComparison, bool isValueSubstring, MediaTypeHeaderValue mediaType )
Parameters
- formatter
- Type: System.Net.Http.Formatting.MediaTypeFormatter
- headerName
- Type: System.String
- headerValue
- Type: System.String
- valueComparison
- Type: System.StringComparison
- isValueSubstring
- Type: System.Boolean
- mediaType
- Type: System.Net.Http.Headers.MediaTypeHeaderValue
MediaTypeFormatterExtensions.AddRequestHeaderMapping Method (MediaTypeFormatter, String, String, StringComparison, Boolean, String)
public static void AddRequestHeaderMapping( this MediaTypeFormatter formatter, string headerName, string headerValue, StringComparison valueComparison, bool isValueSubstring, string mediaType )
Parameters
- formatter
- Type: System.Net.Http.Formatting.MediaTypeFormatter
- headerName
- Type: System.String
- headerValue
- Type: System.String
- valueComparison
- Type: System.StringComparison
- isValueSubstring
- Type: System.Boolean
- mediaType
- Type: System.String
Show:

