System::Net::CookieCollection::IndexOf 方法

CookieCollection::IndexOf method

返回指定 cookie 的索引。

int32_t System::Net::CookieCollection::IndexOf(System::SharedPtr<Cookie> cookie)
参数类型描述
CookieSystem::SharedPtr<Cookie>要搜索的 cookie。

ReturnValue

如果找到指定的 cookie,则返回其索引;否则返回 -1。

另见