## CookieContainer::Add(System::SharedPtr\<Cookie\>) method


Voegt een cookie toe aan de collectie.

```cpp
void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | De cookie om toe te voegen. |

## Zie ook

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Cookie](../../cookie/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## CookieContainer::Add(System::SharedPtr\<Cookie\>, bool) method


Voegt een cookie toe aan de collectie.

```cpp
void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie, bool throwOnError)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | De cookie om toe te voegen. |
| throwOnError | bool | Een waarde die aangeeft of er een uitzondering wordt gegooid wanneer er een fout optreedt. |

## Zie ook

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Cookie](../../cookie/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## CookieContainer::Add(System::SharedPtr\<CookieCollection\>) method


Kopieert cookies van de opgegeven collectie naar de huidige.

```cpp
void System::Net::CookieContainer::Add(System::SharedPtr<CookieCollection> cookies)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| cookies | System::SharedPtr\<CookieCollection\> | De collectie waaruit cookies worden gekopieerd. |

## Zie ook

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [CookieCollection](../../cookiecollection/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## CookieContainer::Add(System::SharedPtr\<Uri\>, System::SharedPtr\<Cookie\>) method


Voegt een cookie toe voor de opgegeven URI.

```cpp
void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<Cookie> cookie)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Een URI van de cookie. |
| cookie | System::SharedPtr\<Cookie\> | De cookie om toe te voegen. |

## Zie ook

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Uri](../../../system/uri/)
* Class [Cookie](../../cookie/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## CookieContainer::Add(System::SharedPtr\<Uri\>, System::SharedPtr\<CookieCollection\>) method


Kopieert cookies van de opgegeven collectie voor de opgegeven URI naar de huidige collectie.

```cpp
void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<CookieCollection> cookies)
```


| Parameter | Type | Beschrijving |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Een URI van de cookie. |
| cookies | System::SharedPtr\<CookieCollection\> | Een cookiecollectie waaruit cookies moeten worden gekopieerd. |

## Zie ook

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