DesignerOptionService.DesignerOptionCollection.CopyTo(Array, Int32) 方法

定义

从目标数组的指定索引处开始,将整个集合复制到兼容的一维 ArrayCopies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit

参数

array
Array

一维 Array,用作从集合复制的元素的目标数组。The one-dimensional Array that is the destination of the elements copied from the collection. array 必须具有从零开始的索引。The array must have zero-based indexing.

index
Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

实现

适用于

另请参阅