HttpHeaders.AddWithoutValidation Method (String, IEnumerable<String>)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds the specified header and its values into the HttpHeaders collection without validating the provided information.

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

Syntax

'Declaration
Public Sub AddWithoutValidation ( _
    name As String, _
    values As IEnumerable(Of String) _
)
public void AddWithoutValidation(
    string name,
    IEnumerable<string> values
)
public:
void AddWithoutValidation(
    String^ name, 
    IEnumerable<String^>^ values
)
member AddWithoutValidation : 
        name:string * 
        values:IEnumerable<string> -> unit 
public function AddWithoutValidation(
    name : String, 
    values : IEnumerable<String>
)

Parameters

Remarks

The header values will not be parsed and validated.

If the specified header does not exist, the AddWithoutValidation(String, IEnumerable<String>) method inserts a new header into the list of header name/value pairs.

If the specified header is already present, values are added to the comma-separated list of values associated with the header.

See Also

Reference

HttpHeaders Class

AddWithoutValidation Overload

System.Net.Http.Headers Namespace