Initializes a new instance of the NameValueCollection class
that is empty and has the specified initial capacity.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
| C# |
|---|
public NameValueCollection( int capacity ) |
| Visual Basic |
|---|
Public Sub New ( capacity As Integer ) |
Parameters
- capacity
- Type: System..::..Int32
The number of elements that the new NameValueCollection is initially capable of storing.
Remarks
Please refer to ArrayList(Int32) for details.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentOutOfRangeException | capacity is less than zero. |