Add Method (String, String)

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

Inserts a header with the specified name and value into the collection.

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

member Add : 
        name:string * 
        value:string -> unit 

Parameters

name
Type: System..::..String
The header to add to the collection.
value
Type: System..::..String
The content of the header.

If the header specified in name does not exist, the Add method inserts a new header into the list of header name/value pairs.

If the header specified in name is already present, value is added to the existing comma-separated list of values associated with name.

Show: