System::Net::CookieCollection::InternalAdd 方法

CookieCollection::InternalAdd method

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

int32_t System::Net::CookieCollection::InternalAdd(System::SharedPtr<Cookie> cookie, bool isStrict)
参数类型描述
CookieSystem::SharedPtr<Cookie>要添加的 Cookie。
isStrictbool当指定的 cookie 必须替换旧的时为 True,否则为 false。

ReturnValue

当指定的 cookie 替换了旧的时为 0,否则为 1。

另见