ListBox.SelectedIndexCollection.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

目标数组。The destination array.

index
Int32

目标数组中的索引,存储从此处开始。The index in the destination array at which storing begins.

实现

注解

您可以使用此方法将所选索引从多个集合合并到一个数组中。You can use this method to combine the selected indexes from multiple collections into a single array.

适用于