Find()

NameValueHeaderValue::Find(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, String) method

Finds the NameValueHeaderValue-class instance in a collection by the specified name.

static System::SharedPtr<NameValueHeaderValue> System::Net::Http::Headers::NameValueHeaderValue::Find(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>> values, String name)

Arguments

ParameterTypeDescription
valuesSystem::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>The collection of the NameValueHeaderValue-class instances.
nameStringThe name to look for.

Return Value

The NameValueHeaderValue-class instance when it is found, otherwise nullptr.

See Also