Επεξεργασία

Κοινή χρήση μέσω


Int32Collection.CopyTo(Int32[], Int32) Method

Definition

Copies all of the Int32 values in a collection to a specified array.

public:
 virtual void CopyTo(cli::array <int> ^ array, int index);
public void CopyTo (int[] array, int index);
abstract member CopyTo : int[] * int -> unit
override this.CopyTo : int[] * int -> unit
Public Sub CopyTo (array As Integer(), index As Integer)

Parameters

array
Int32[]

Identifies the array to which content is copied.

index
Int32

Index position in the array to which the contents of the collection are copied.

Implements

Exceptions

index is less than zero.

array is multidimensional.

-or-

The number of items in the source Int32Collection is greater than the available space from index to the end of the destination array.

Applies to

See also