SetCookies()

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

Copies cookies from the specified header to the collection and associates them with the specified URI.

void System::Net::CookieContainer::SetCookies(System::SharedPtr<Uri> uri, String cookieHeader)

Arguments

ParameterTypeDescription
uriSystem::SharedPtr<Uri>The URI.
cookieHeaderStringThe header that contains cookies.

See Also