System::Net::CookieCollection::Add 方法

CookieCollection::Add(const System::SharedPtr<Cookie>&) method

向集合中添加一个 Cookie。

void System::Net::CookieCollection::Add(const System::SharedPtr<Cookie> &cookie) override
参数类型描述
Cookieconst System::SharedPtr<Cookie>&要添加的 Cookie。

另见

CookieCollection::Add(System::SharedPtr<CookieCollection>) method

将指定集合中的 cookie 添加到当前集合中。

void System::Net::CookieCollection::Add(System::SharedPtr<CookieCollection> cookies)
参数类型描述
CookiesSystem::SharedPtr<CookieCollection>将从中复制 cookie 到当前集合的集合。

另见