System::Net::CookieContainer::Add metod
Innehåll
[
Dölj
]CookieContainer::Add(System::SharedPtr<Cookie>) method
Lägger till en cookie i samlingen.
void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie)
| Parameter | Type | Beskrivning |
|---|---|---|
| cookie | System::SharedPtr<Cookie> | Cookien att lägga till. |
Se även
- Typedef SharedPtr
- Class Cookie
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<Cookie>, bool) method
Lägger till en cookie i samlingen.
void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie, bool throwOnError)
| Parameter | Type | Beskrivning |
|---|---|---|
| cookie | System::SharedPtr<Cookie> | Cookien att lägga till. |
| throwOnError | bool | Ett värde som indikerar om ett undantag kommer att kastas när ett fel inträffar. |
Se även
- Typedef SharedPtr
- Class Cookie
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<CookieCollection>) method
Kopierar cookies från den angivna samlingen till den aktuella.
void System::Net::CookieContainer::Add(System::SharedPtr<CookieCollection> cookies)
| Parameter | Type | Beskrivning |
|---|---|---|
| cookies | System::SharedPtr<CookieCollection> | Samlingen som cookies kommer att kopieras från. |
Se även
- Typedef SharedPtr
- Class CookieCollection
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<Uri>, System::SharedPtr<Cookie>) method
Lägger till en cookie för den angivna URI:n.
void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<Cookie> cookie)
| Parameter | Type | Beskrivning |
|---|---|---|
| uri | System::SharedPtr<Uri> | En URI för cookien. |
| cookie | System::SharedPtr<Cookie> | Cookien att lägga till. |
Se även
- Typedef SharedPtr
- Class Uri
- Class Cookie
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<Uri>, System::SharedPtr<CookieCollection>) method
Kopierar cookies från den angivna samlingen för den angivna URI:n till den aktuella samlingen.
void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<CookieCollection> cookies)
| Parameter | Type | Beskrivning |
|---|---|---|
| uri | System::SharedPtr<Uri> | En URI för cookien. |
| cookies | System::SharedPtr<CookieCollection> | En cookie-samling som cookies måste kopieras från. |
Se även
- Typedef SharedPtr
- Class Uri
- Class CookieCollection
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++