System::Net::CookieCollection::idx_get 方法

CookieCollection::idx_get(int32_t) method

返回位于指定索引的 cookie 集合中的 cookie。

System::SharedPtr<Cookie> System::Net::CookieCollection::idx_get(int32_t index)
参数类型描述
索引int32_t必须返回的 cookie 的索引。

ReturnValue

指定索引处的 cookie。

另见

CookieCollection::idx_get(String) method

根据指定名称返回 cookie 集合中的 cookie。

System::SharedPtr<Cookie> System::Net::CookieCollection::idx_get(String name)
参数类型描述
名称String必须返回的 cookie 的名称。

ReturnValue

从 cookie 集合中按指定名称获取的 cookie(如果找到),否则为 nullptr。

另见