System::Net::CookieContainer::Add 方法
内容
[
隐藏
]CookieContainer::Add(System::SharedPtr<Cookie>) method
向集合中添加 cookie。
void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie)
| Parameter | Type | 描述 |
|---|---|---|
| cookie | System::SharedPtr<Cookie> | 要添加的 cookie。 |
另见
- Typedef SharedPtr
- Class Cookie
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<Cookie>, bool) method
向集合中添加 cookie。
void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie, bool throwOnError)
| Parameter | Type | 描述 |
|---|---|---|
| cookie | System::SharedPtr<Cookie> | 要添加的 cookie。 |
| throwOnError | bool | 一个指示在发生错误时是否会抛出异常的值。 |
另见
- Typedef SharedPtr
- Class Cookie
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<CookieCollection>) method
将 cookie 从指定的集合复制到当前集合。
void System::Net::CookieContainer::Add(System::SharedPtr<CookieCollection> cookies)
| Parameter | Type | 描述 |
|---|---|---|
| Cookie | System::SharedPtr<CookieCollection> | 将从中复制 cookies 的集合。 |
另见
- Typedef SharedPtr
- Class CookieCollection
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++
CookieContainer::Add(System::SharedPtr<Uri>, System::SharedPtr<Cookie>) method
为指定的 URI 添加 cookie。
void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<Cookie> cookie)
| Parameter | Type | 描述 |
|---|---|---|
| uri | System::SharedPtr<Uri> | Cookie 的 URI。 |
| cookie | System::SharedPtr<Cookie> | 要添加的 cookie。 |
另见
- 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
将指定 URI 的指定集合中的 cookie 复制到当前集合。
void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<CookieCollection> cookies)
| Parameter | Type | 描述 |
|---|---|---|
| uri | System::SharedPtr<Uri> | Cookie 的 URI。 |
| Cookie | System::SharedPtr<CookieCollection> | 必须从中复制 cookies 的 cookie 集合。 |
另见
- Typedef SharedPtr
- Class Uri
- Class CookieCollection
- Class CookieContainer
- Namespace System::Net
- Library Aspose.Page for C++