## HttpHeaders::Add(String, System::SharedPtr\<Collections::Generic::IEnumerable\<String\>\>) method


Validates a new name-values pair and adds it to the current collection.

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


| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The header name. |
| values | System::SharedPtr\<Collections::Generic::IEnumerable\<String\>\> | The header values. |

## 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++](../../../)
## HttpHeaders::Add(String, String) method


Validates a new name-value pair and adds it to the current collection.

```cpp
void System::Net::Http::Headers::HttpHeaders::Add(String name, String value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The header name. |
| value | String | The header value. |

## See Also

* Class [String](../../../system/string/)
* Class [HttpHeaders](../)
* Namespace [System::Net::Http::Headers](../../)
* Library [Aspose.PUB for C++](../../../)
