แก้ไข

แชร์ผ่าน


ComponentCollection.CopyTo(IComponent[], Int32) Method

Definition

Copies the entire collection to an array, starting writing at the specified array index.

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

Parameters

array
IComponent[]

An IComponent array to copy the objects in the collection to.

index
Int32

The index of the array at which copying to should begin.

Applies to