语言

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

定义

将整个集合复制到数组内指定位置的现有数组中。

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

参数

destdestination
Array

目标数组。

index
Int32

存储开始的目标数组中的索引。

实现

注解

可以使用此方法将多个集合中的所选索引合并到单个数组中。

适用于