## CookieContainer::SetCookies method


将 Cookie 从指定的头部复制到集合，并将其关联到指定的 URI。

```cpp
void System::Net::CookieContainer::SetCookies(System::SharedPtr<Uri> uri, String cookieHeader)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | 该 URI。 |
| cookieHeader | String | 包含 Cookie 的标头。 |

## 另见

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