NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StringTable.CopyTo (String[], Int32)

Copies the strings in the StringTable into a one-dimensional array of String objects at the specified index.

[Visual Basic]
Overloads Overridable Public Sub CopyTo( _
   ByVal array() As String, _
   ByVal index As Integer _
)
[C#]
public virtual void CopyTo(
   string[] array,
   int index
);
[C++]
public: virtual void CopyTo(
   String* array[],
   int index
);
[JScript]
public function CopyTo(
   array : String[],
   index : int
);

Parameters

array
The one-dimensional array of String objects to contain the strings from the StringTable.
index
The index in array at which to start copying.

Return Value

None.

Exceptions

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.

Remarks

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.

See Also

StringTable Class | StringTable Members | System.Collections Namespace | StringTable.CopyTo Overload List | Array | Type | String | Object