Initializes a new instance of the NameValueCollection class
that contains elements copied from the specified collection and
that has the same initial capacity as the number of elements copied.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public NameValueCollection( NameValueCollection collection ) |
Visual Basic |
---|
Public Sub New ( collection As NameValueCollection ) |
Parameters
- collection
- Type: CodeSmith.CustomProperties..::..NameValueCollection
The NameValueCollection whose elements are copied to the new collection.
Remarks
Please refer to ArrayList(ICollection) for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | collection is a null reference. |