Add()

HttpHeaders::Add(String, System::SharedPtr<Collections::Generic::IEnumerable<String>>) method

Validates a new name-values pair and adds it to the current collection.

void System::Net::Http::Headers::HttpHeaders::Add(String name, System::SharedPtr<Collections::Generic::IEnumerable<String>> values)

Arguments

ParameterTypeDescription
nameStringThe header name.
valuesSystem::SharedPtr<Collections::Generic::IEnumerable<String>>The header values.

HttpHeaders::Add(String, String) method

Validates a new name-value pair and adds it to the current collection.

void System::Net::Http::Headers::HttpHeaders::Add(String name, String value)

Arguments

ParameterTypeDescription
nameStringThe header name.
valueStringThe header value.

See Also