Copies the entire IStringCollection to a one-dimensional Array
of String 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( string[] array, int arrayIndex ) |
Visual Basic |
---|
Sub CopyTo ( array As String(), arrayIndex As Integer ) |
Parameters
- array
- Type: array<System..::..String>[]()[][]
The one-dimensional Array that is the destination of the String elements copied from the IStringCollection. 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 IStringCollection is greater than the available space from arrayIndex to the end of the destination array. |