TryGetValues()

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

Tries to get corresponding values by the specified name.

bool System::Net::Http::Headers::HttpHeaders::TryGetValues(String name, System::SharedPtr<Collections::Generic::IEnumerable<String>> &values)

Arguments

ParameterTypeDescription
nameStringThe header name.
valuesSystem::SharedPtr<Collections::Generic::IEnumerable<String>>&An instance where corresponding values will be assigned.

Return Value

True when the header values are found by the specified name, otherwise false.

See Also