Constructs and initializes a new instance of the System.Collections.Specialized.NameValueCollection class with the specified initial capacity.
- capacity
- A int containing the initial number of entries that the new instance can contain.
Type Reason ArgumentOutOfRangeException capacity < 0.
The new instance is initialized with the default IHashCodeProvider and IComparer .
Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0