System::Net::CookieContainer::GetCookieHeader 方法

CookieContainer::GetCookieHeader(System::SharedPtr<Uri>) method

返回包含与指定 URI 关联的 Cookie 的 HTTP 头部。

String System::Net::CookieContainer::GetCookieHeader(System::SharedPtr<Uri> uri)
参数类型描述
uriSystem::SharedPtr<Uri>用于构建标头名称的 URI。

ReturnValue

包含与指定 URI 关联的 cookie 的 HTTP 标头。

另见

CookieContainer::GetCookieHeader(System::SharedPtr<Uri>, String&) method

返回包含与指定 URI 关联的 Cookie 的 HTTP 头部。

String System::Net::CookieContainer::GetCookieHeader(System::SharedPtr<Uri> uri, String &optCookie2)
参数类型描述
uriSystem::SharedPtr<Uri>用于构建标头名称的 URI。
optCookie2String&输出参数,将在其中分配具有最大支持版本的 cookie。

ReturnValue

包含与指定 URI 关联的 cookie 的 HTTP 标头。

另见