MediaTypeFormatterExtensions.AddRequestHeaderMapping Method
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Overload List
Name | Description | |
---|---|---|
AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue) | ||
AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, String) |
See Also
MediaTypeFormatterExtensions Class
System.Net.Http.Formatting Namespace
Return to top
MediaTypeFormatterExtensions.AddRequestHeaderMapping Method (MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue)
Syntax
public static void AddRequestHeaderMapping(
this MediaTypeFormatter formatter,
string headerName,
string headerValue,
StringComparison valueComparison,
bool isValueSubstring,
MediaTypeHeaderValue mediaType
)
public:
[ExtensionAttribute]
static void AddRequestHeaderMapping(
MediaTypeFormatter^ formatter,
String^ headerName,
String^ headerValue,
StringComparison valueComparison,
bool isValueSubstring,
MediaTypeHeaderValue^ mediaType
)
static member AddRequestHeaderMapping :
formatter:MediaTypeFormatter *
headerName:string *
headerValue:string *
valueComparison:StringComparison *
isValueSubstring:bool *
mediaType:MediaTypeHeaderValue -> unit
<ExtensionAttribute>
Public Shared Sub AddRequestHeaderMapping (
formatter As MediaTypeFormatter,
headerName As String,
headerValue As String,
valueComparison As StringComparison,
isValueSubstring As Boolean,
mediaType As MediaTypeHeaderValue
)
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
Return to top
MediaTypeFormatterExtensions.AddRequestHeaderMapping Method (MediaTypeFormatter, String, String, StringComparison, Boolean, String)
Syntax
public static void AddRequestHeaderMapping(
this MediaTypeFormatter formatter,
string headerName,
string headerValue,
StringComparison valueComparison,
bool isValueSubstring,
string mediaType
)
public:
[ExtensionAttribute]
static void AddRequestHeaderMapping(
MediaTypeFormatter^ formatter,
String^ headerName,
String^ headerValue,
StringComparison valueComparison,
bool isValueSubstring,
String^ mediaType
)
static member AddRequestHeaderMapping :
formatter:MediaTypeFormatter *
headerName:string *
headerValue:string *
valueComparison:StringComparison *
isValueSubstring:bool *
mediaType:string -> unit
<ExtensionAttribute>
Public Shared Sub AddRequestHeaderMapping (
formatter As MediaTypeFormatter,
headerName As String,
headerValue As String,
valueComparison As StringComparison,
isValueSubstring As Boolean,
mediaType As String
)
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
Return to top