Initializes a new instance of the NameValueCollection class
that contains elements copied from the specified NameValueEntry
array 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( NameValueEntry[] array ) |
Visual Basic |
---|
Public Sub New ( array As NameValueEntry() ) |
Parameters
- array
- Type: array<CodeSmith.CustomProperties..::..NameValueEntry>[]()[][]
An Array of NameValueEntry elements that are copied to the new collection.
Remarks
Please refer to ArrayList(ICollection) for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | array is a null reference. |