TryAddWithoutValidation()

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)

Arguments

ParameterTypeDescription
nameStringThe header name.
valueStringThe header value.

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)

Arguments

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

See Also