System::Net::CookieContainer::Add method

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

Adds a cookie to the collection.

void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie)
ParameterTypeDescription
cookieSystem::SharedPtr<Cookie>The cookie to add.

See Also

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

Adds a cookie to the collection.

void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie, bool throwOnError)
ParameterTypeDescription
cookieSystem::SharedPtr<Cookie>The cookie to add.
throwOnErrorboolA value that indicates if an exception will be thrown when an error occurs.

See Also

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)
ParameterTypeDescription
cookiesSystem::SharedPtr<CookieCollection>The collection from which cookies will be copied.

See Also

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)
ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI of the cookie.
cookieSystem::SharedPtr<Cookie>The cookie to add.

See Also

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)
ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI of the cookie.
cookiesSystem::SharedPtr<CookieCollection>A cookie collection from which cookies must be copied.

See Also