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


Aggiunge un cookie alla raccolta.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Il cookie da aggiungere. |

## Vedi anche

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


Aggiunge un cookie alla raccolta.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Il cookie da aggiungere. |
| throwOnError | bool | Un valore che indica se verrà generata un'eccezione quando si verifica un errore. |

## Vedi anche

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


Copia i cookie dalla raccolta specificata a quella corrente.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| cookie | System::SharedPtr\<CookieCollection\> | La raccolta da cui verranno copiati i cookie. |

## Vedi anche

* 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


Aggiunge un cookie per l'URI specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Un URI del cookie. |
| cookie | System::SharedPtr\<Cookie\> | Il cookie da aggiungere. |

## Vedi anche

* 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


Copia i cookie dalla raccolta specificata per l'URI specificato alla raccolta corrente.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Un URI del cookie. |
| cookie | System::SharedPtr\<CookieCollection\> | Una raccolta di cookie da cui devono essere copiati i cookie. |

## Vedi anche

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