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


Fügt ein Cookie zur Sammlung hinzu.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Cookie | System::SharedPtr\<Cookie\> | Der Cookie, der hinzugefügt werden soll. |

## Siehe auch

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


Fügt ein Cookie zur Sammlung hinzu.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Cookie | System::SharedPtr\<Cookie\> | Der Cookie, der hinzugefügt werden soll. |
| throwOnError | bool | Ein Wert, der angibt, ob bei einem Fehler eine Ausnahme ausgelöst wird. |

## Siehe auch

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


Kopiert Cookies aus der angegebenen Sammlung in die aktuelle.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| Cookies | System::SharedPtr\<CookieCollection\> | Die Sammlung, aus der Cookies kopiert werden. |

## Siehe auch

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


Fügt ein Cookie für die angegebene URI hinzu.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Ein URI des Cookies. |
| Cookie | System::SharedPtr\<Cookie\> | Der Cookie, der hinzugefügt werden soll. |

## Siehe auch

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


Kopiert Cookies aus der angegebenen Sammlung für die angegebene URI in die aktuelle Sammlung.

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


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Ein URI des Cookies. |
| Cookies | System::SharedPtr\<CookieCollection\> | Eine Cookie-Sammlung, aus der Cookies kopiert werden müssen. |

## Siehe auch

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