Mono Class Library: System.Collections.Specialized.NameValueCollection Overview | Members

System.Collections.Specialized.NameValueCollection Constructor

Constructs and initializes a new instance of the System.Collections.Specialized.NameValueCollection class with the specified initial capacity.

public NameValueCollection (int capacity)

Parameters

capacity
A int containing the initial number of entries that the new instance can contain.

Exceptions

TypeReason
ArgumentOutOfRangeExceptioncapacity < 0.

Remarks

The new instance is initialized with the default IHashCodeProvider and IComparer .

Requirements

Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0