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


Menambahkan cookie ke koleksi.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Cookie yang akan ditambahkan. |

## Lihat Juga

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


Menambahkan cookie ke koleksi.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Cookie yang akan ditambahkan. |
| throwOnError | bool | Nilai yang menunjukkan apakah pengecualian akan dilempar ketika terjadi kesalahan. |

## Lihat Juga

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


Menyalin cookie dari koleksi yang ditentukan ke koleksi saat ini.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| cookies | System::SharedPtr\<CookieCollection\> | Koleksi yang akan disalin cookie darinya. |

## Lihat Juga

* 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


Menambahkan cookie untuk URI yang ditentukan.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | URI cookie. |
| cookie | System::SharedPtr\<Cookie\> | Cookie yang akan ditambahkan. |

## Lihat Juga

* 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


Menyalin cookie dari koleksi yang ditentukan untuk URI yang ditentukan ke koleksi saat ini.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | URI cookie. |
| cookies | System::SharedPtr\<CookieCollection\> | Koleksi cookie yang harus disalin. |

## Lihat Juga

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