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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ReadOnlyStringCollection Class