## HttpHeaders::TryAddWithoutValidation(String, String) method


Tries to add a new name-value pair to the current collection.

```cpp
bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(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++](../../../)
## HttpHeaders::TryAddWithoutValidation(String, System::SharedPtr\<Collections::Generic::IEnumerable\<String\>\>) method


Adds a collection of name-value pairs to the current collection.

```cpp
bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(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++](../../../)
