System::Net::CookieContainer::Add metod

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

Lägger till en cookie i samlingen.

void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie)
ParameterTypeBeskrivning
cookieSystem::SharedPtr<Cookie>Cookien att lägga till.

Se även

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

Lägger till en cookie i samlingen.

void System::Net::CookieContainer::Add(System::SharedPtr<Cookie> cookie, bool throwOnError)
ParameterTypeBeskrivning
cookieSystem::SharedPtr<Cookie>Cookien att lägga till.
throwOnErrorboolEtt värde som indikerar om ett undantag kommer att kastas när ett fel inträffar.

Se även

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

Kopierar cookies från den angivna samlingen till den aktuella.

void System::Net::CookieContainer::Add(System::SharedPtr<CookieCollection> cookies)
ParameterTypeBeskrivning
cookiesSystem::SharedPtr<CookieCollection>Samlingen som cookies kommer att kopieras från.

Se även

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

Lägger till en cookie för den angivna URI:n.

void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<Cookie> cookie)
ParameterTypeBeskrivning
uriSystem::SharedPtr<Uri>En URI för cookien.
cookieSystem::SharedPtr<Cookie>Cookien att lägga till.

Se även

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

Kopierar cookies från den angivna samlingen för den angivna URI:n till den aktuella samlingen.

void System::Net::CookieContainer::Add(System::SharedPtr<Uri> uri, System::SharedPtr<CookieCollection> cookies)
ParameterTypeBeskrivning
uriSystem::SharedPtr<Uri>En URI för cookien.
cookiesSystem::SharedPtr<CookieCollection>En cookie-samling som cookies måste kopieras från.

Se även