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

CookieCollection::idx_get(int32_t) method

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

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

ReturnValue

指定索引处的 cookie。

另见

CookieCollection::idx_get(String) method

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

System::SharedPtr<Cookie> System::Net::CookieCollection::idx_get(String name)
ParameterType描述
name字符串必须返回的 cookie 的名称。

ReturnValue

根据指定名称从 cookie 集合中获取 cookie(如果找到),否则返回 nullptr。

另见