ListBox.SelectedObjectCollection.CopyTo(Array, Int32) 方法

定義

將整個集合複製到現有陣列中的指定位置。Copies the entire collection into an existing array at a specified location within the array.

public:
 virtual void CopyTo(Array ^ dest, int index);
public void CopyTo (Array dest, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (dest As Array, index As Integer)

參數

destination
Array

要將集合內容複製到其中的陣列。An array to copy the contents of the collection to.

index
Int32

目的陣列中的位置,集合中的項目將複製到該處。The location within the destination array to copy the items from the collection to.

實作

備註

您可以使用這個方法,將多個集合中選取的專案結合成單一陣列。You can use this method to combine the selected items from multiple collections into a single array.

適用於