ToolboxCategoryItems.ICollection.CopyTo(Array, Int32) 方法

定义

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

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);

参数

array
Array

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

index
Int32

目标数组的从零开始的索引。The zero-based index of the target array.

实现

异常

arraynullThe array is null.

注解

元素按照枚举数循环访问 Array 集合的顺序复制到 ToolboxCategory 中。The elements are copied to the Array in the same order in which the enumerator iterates through the ToolboxCategory collection.

适用于