Copies the entire IStringStringCollection
to a one-dimensional Array of NameValueEntry elements,
starting at the specified index of the target array.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
void CopyTo( NameValueEntry[] array, int arrayIndex ) |
Visual Basic |
---|
Sub CopyTo ( array As NameValueEntry(), arrayIndex As Integer ) |
Parameters
- array
- Type: array<CodeSmith.CustomProperties..::..NameValueEntry>[]()[][]
The one-dimensional Array that is the destination of the NameValueEntry elements copied from the IStringStringCollection. The Array must have zero-based indexing.
- arrayIndex
- Type: System..::..Int32
The zero-based index in array at which copying begins.
Remarks
Please refer to CopyTo(Array, Int32) for details.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | array is a null reference. |
System..::..ArgumentOutOfRangeException | arrayIndex is less than zero. |
System..::..ArgumentException | arrayIndex is equal to or greater than the length of array. -or- The number of elements in the source IStringStringCollection is greater than the available space from arrayIndex to the end of the destination array. |