Share via


CopyTo Method

Copies the strings in the collection to an array, starting at a particular array index.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As String(), _
    index As Integer _
)
'Usage
Dim instance As ReadOnlyStringCollection
Dim array As String()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    string[] array,
    int index
)
public:
void CopyTo(
    array<String^>^ array, 
    int index
)
public function CopyTo(
    array : String[], 
    index : int
)

Parameters

  • array
    Type: array<System..::.String>[]()[]
    The one-dimensional array in which to copy elements.
  • index
    Type: System..::.Int32
    The zero-based index in the destination array which to copy elements.

Remarks

Use this method to copy the strings in the collection to an array, starting at a particular array index.

Permissions

See Also

Reference

ReadOnlyStringCollection Class

ReadOnlyStringCollection Members

Microsoft.CommerceServer.Runtime Namespace