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


コレクションにクッキーを追加します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| クッキー | System::SharedPtr\<Cookie\> | 追加するクッキー。 |

## 参照

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


コレクションにクッキーを追加します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| クッキー | System::SharedPtr\<Cookie\> | 追加するクッキー。 |
| throwOnError | bool | エラーが発生したときに例外がスローされるかどうかを示す値。 |

## 参照

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


指定されたコレクションから現在のコレクションへクッキーをコピーします。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| クッキー | System::SharedPtr\<CookieCollection\> | クッキーがコピーされるコレクション。 |

## 参照

* 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


指定された URI 用にクッキーを追加します。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | クッキーの URI。 |
| クッキー | System::SharedPtr\<Cookie\> | 追加するクッキー。 |

## 参照

* 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


指定された URI 用の指定されたコレクションからクッキーを現在のコレクションへコピーします。

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


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | クッキーの URI。 |
| クッキー | System::SharedPtr\<CookieCollection\> | クッキーをコピーしなければならないクッキーコレクション。 |

## 参照

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