Copies the StringTable values into a one-dimensional Array instance at the specified index.
[Visual Basic] Overloads Overridable Public Sub CopyTo( _ ByVal array As Array, _ ByVal index As Integer _ ) [C#] public virtual void CopyTo( Array array, int index ); [C++] public: virtual void CopyTo( Array* array, int index ); [JScript] public function CopyTo( array : Array, index : int );
None.
Exception Type | Condition |
---|---|
ArgumentException | The Type of array is neither String nor Object.
-or- array is multidimensional. -or- The number of elements in the StringTable is greater than the available space between index and the end of array. |
ArgumentNullException | array is a null reference (in Visual Basic Nothing). |
ArgumentOutOfRangeException | index is less than array 's lowbound. |
This method can be overridden by a derived class.
If a string in the StringTable is a null reference (Nothing), it is skipped and not copied to array.
The order of the elements in the destination array is the same as the order of the elements in the StringTable.
StringTable Class | StringTable Members | System.Collections Namespace | StringTable.CopyTo Overload List | Array | Type | String | Object