## CookieContainer::SetCookies method


Copies cookies from the specified header to the collection and associates them with the specified URI.

```cpp
void System::Net::CookieContainer::SetCookies(System::SharedPtr<Uri> uri, String cookieHeader)
```


| Parameter | Type | Description |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | The URI. |
| cookieHeader | String | The header that contains cookies. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Uri](../../../system/uri/)
* Class [String](../../../system/string/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
