## CookieCollection::Add(const System::SharedPtr\<Cookie\>\&) method


Lägger till en cookie i samlingen.

```cpp
void System::Net::CookieCollection::Add(const System::SharedPtr<Cookie> &cookie) override
```


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| cookie | const System::SharedPtr\<Cookie\>\& | Cookien att lägga till. |

## Se även

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


Lägger till kakor från den angivna samlingen till den aktuella.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| cookies | System::SharedPtr\<CookieCollection\> | Samlingen som kakor kommer att kopieras från till den aktuella samlingen. |

## Se även

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [CookieCollection](../)
* Class [CookieCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
