## HttpHeaders::TryGetValues method


Tries to get corresponding values by the specified name.

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


| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The header name. |
| values | System::SharedPtr\<Collections::Generic::IEnumerable\<String\>\>\& | An instance where corresponding values will be assigned. |

### ReturnValue

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

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerable](../../../system.collections.generic/ienumerable/)
* Class [HttpHeaders](../)
* Namespace [System::Net::Http::Headers](../../)
* Library [Aspose.PUB for C++](../../../)
