## 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 | Type | 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.Page 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 | Type | Beskrivning |
| --- | --- | --- |
| cookies | System::SharedPtr\<CookieCollection\> | Samlingen från vilken kakor kommer att kopieras till den aktuella. |

## Se även

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