PrincipalValueCollection<T>.CopyTo(T[], Int32) PrincipalValueCollection<T>.CopyTo(T[], Int32) PrincipalValueCollection<T>.CopyTo(T[], Int32) PrincipalValueCollection<T>.CopyTo(T[], Int32) Method

定義

將集合內容複製到指定的陣列,從陣列的指定位置開始。Copies the contents of the collection to the specified array, starting at the specified position in the array.

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

參數

array
T[]

物件的 ArrayAn Array of objects.

index
Int32 Int32 Int32 Int32

表示 array 中位置的整數,集合中的第一個物件應複製到該處。An integer representing the position in array to which the first object in the collection should be copied.

實作

適用於