System::Net::CookieCollection::InternalAdd method

CookieCollection::InternalAdd method

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

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

ReturnValue

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

另见