Edit

Kongsi melalui


DetailsViewRowCollection.ICollection.CopyTo(Array, Int32) Method

Definition

Copies all the items from this DetailsViewRowCollection object to the specified Array object, 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 DetailsViewRowCollection.

index
Int32

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

Implements

Remarks

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

Note

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

Applies to

See also