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. [Edit]

public NameValueCollection (int capacity)

Parameters

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

Exceptions

TypeReason
ArgumentOutOfRangeExceptioncapacity < 0. [Edit]

Remarks

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

Requirements

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