Add Method (String)

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

Inserts the specified header into the collection.

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

public void Add(
	string header
)

Parameters

header
Type: System..::..String
The header to add, with the name and value separated by a colon.

The header parameter must be specified in the format "name:value". If the specified header does not exist in the collection, a new header is added to the collection.

If the header specified in header is already present in the collection, the value part of the header is concatenated with the existing value.

Show: