System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation method

HttpHeaders::TryAddWithoutValidation(String, String) method

Tries to add a new name-value pair to the current collection.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, String value)
ParameterTypeDescription
nameStringThe header name.
valueStringThe header value.

See Also

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

Adds a collection of name-value pairs to the current collection.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, System::SharedPtr<Collections::Generic::IEnumerable<String>> values)
ParameterTypeDescription
nameStringThe header name.
valuesSystem::SharedPtr<Collections::Generic::IEnumerable<String>>The header values.

See Also