Add()

CookieContainer::Add(System::SharedPtr<Cookie>) method

Adds a cookie to the collection.

void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie)

Arguments

ParameterTypeDescription
cookieSystem::SharedPtr<Cookie>The cookie to add.

CookieContainer::Add(System::SharedPtr<Cookie>, bool) method

Adds a cookie to the collection.

void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie, bool throwOnError)

Arguments

ParameterTypeDescription
cookieSystem::SharedPtr<Cookie>The cookie to add.
throwOnErrorboolA value that indicates if an exception will be thrown when an error occurs.

CookieContainer::Add(System::SharedPtr<CookieCollection>) method

Copies cookies from the specified collection to the current one.

void System::Net::CookieContainer::Add(System::SharedPtr<CookieCollection> cookies)

Arguments

ParameterTypeDescription
cookiesSystem::SharedPtr<CookieCollection>The collection from which cookies will be copied.

CookieContainer::Add(System::SharedPtr<Uri>, System::SharedPtr<Cookie>) method

Adds a cookie for the specified URI.

void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<Cookie> cookie)

Arguments

ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI of the cookie.
cookieSystem::SharedPtr<Cookie>The cookie to add.

CookieContainer::Add(System::SharedPtr<Uri>, System::SharedPtr<CookieCollection>) method

Copies cookies from the specified collection for the specified URI to the current collection.

void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<CookieCollection> cookies)

Arguments

ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI of the cookie.
cookiesSystem::SharedPtr<CookieCollection>A cookie collection from which cookies must be copied.

See Also