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


向集合中添加 cookie。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| cookie | const System::SharedPtr\<Cookie\>\& | 要添加的 cookie。 |

## 另见

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


将指定集合中的 cookie 添加到当前集合中。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| Cookie | System::SharedPtr\<CookieCollection\> | 将从中复制 cookie 到当前集合的集合。 |

## 另见

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