Freigeben über


MediaTypeFormatterExtensions.AddRequestHeaderMapping Method

 

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue)

System_CAPS_pubmethodSystem_CAPS_static 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

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

Return to top