public CookieContainer (int capacity, int perDomainCapacity, int maxCookieSize)
: this (capacity)
{
if (perDomainCapacity != Int32.MaxValue && (perDomainCapacity <= 0 || perDomainCapacity > capacity))
#if NET_2_0
throw new ArgumentOutOfRangeException ("perDomainCapacity",
string.Format ("PerDomainCapacity must be " +
"greater than {0} and less than {1}.", 0,
capacity));
#else
throw new ArgumentException ("PerDomainCapacity");
#endif
if (maxCookieSize <= 0)
#if NET_2_0
throw new ArgumentException ("Must be greater than zero", "MaxCookieSize");
#else
throw new ArgumentException ("MaxCookieSize");
#endif
this.perDomainCapacity = perDomainCapacity;
this.maxCookieSize = maxCookieSize;
}