System::Net::Http::Headers::HttpHeaders::Add method

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)
ParameterTypeDescription
nameStringThe header name.
valueStringThe header value.

See Also

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)
ParameterTypeDescription
nameStringThe header name.
valuesSystem::SharedPtr<Collections::Generic::IEnumerable<String>>The header values.

See Also