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
- name
Type: System.String
The header to add to the collection.
- values
Type: System.Collections.Generic.IEnumerable<String>
The values of the header.
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.