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


Προσθέτει ένα cookie στη συλλογή.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Το 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


Προσθέτει ένα cookie στη συλλογή.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| cookie | System::SharedPtr\<Cookie\> | Το 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


Αντιγράφει cookies από τη συγκεκριμένη συλλογή στην τρέχουσα.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| cookies | System::SharedPtr\<CookieCollection\> | Η συλλογή από την οποία θα αντιγραφούν τα cookies. |

## Δείτε επίσης

* 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


Προσθέτει ένα cookie για το καθορισμένο URI.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Ένα URI του cookie. |
| cookie | System::SharedPtr\<Cookie\> | Το 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


Αντιγράφει τα cookies από τη συγκεκριμένη συλλογή για το καθορισμένο URI στη τρέχουσα συλλογή.

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Ένα URI του cookie. |
| cookies | System::SharedPtr\<CookieCollection\> | Μια συλλογή cookie από την οποία πρέπει να αντιγραφούν τα cookies. |

## Δείτε επίσης

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