Adds the contents of a System.Net.CookieCollection to the System.Net.CookieContainer.
- cookies
- The System.Net.CookieCollection to be added to the System.Net.CookieContainer.
If the CookieContainer.Count property equals the CookieContainer.Capacity property, one or more System.Net.Cookie instances are removed from the container before adding the contents of the cookies parameter. Enough System.Net.Cookie instances are removed to make room for cookies as follows: if there are expired instances, they are cleaned up. If not, or if more room is needed, then the least recently used System.Net.CookieCollection is found and removed from the container.