語言

ConnectionInterfaceCollection.CopyTo(Type[], Int32) 方法

定義

從目標陣列指定的索引開始,將整個 ReadOnlyCollectionBase 物件複製到相容的一維 Array。

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

參數

array
Type[]

一維 Array ,即從 中複製 ReadOnlyCollectionBase元素的目的地。 必須 Array 有零基索引。

index
Int32

複製開始的零基索引 array 。

適用於