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


يضيف ملف تعريف ارتباط إلى المجموعة.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| ملف تعريف الارتباط | 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)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| ملف تعريف الارتباط | 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)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| ملفات تعريف الارتباط | 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)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| 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


ينسخ ملفات تعريف الارتباط من المجموعة المحددة للعنوان المحدد إلى المجموعة الحالية.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| 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++](../../../)
