Breyta

Deila með


DataKeyArray.ICollection.CopyTo(Array, Int32) Method

Definition

Copies all the items from this collection to the specified Array, starting at the specified index in the Array.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo

Parameters

array
Array

A zero-based Array that receives the copied items from the collection.

index
Int32

The first index in the specified Array to receive the copied contents.

Implements

Remarks

This implementation of the ICollection.CopyTo method is a helper method used by the DataKeyArray class to copy the items in the DataKeyArray collection into the specified System.Array, starting at the specified index. The System.Array can then be used to access the items in the collection.

Note

You must use a zero-based System.Array for the array parameter.

Applies to

See also