InternalDataCollectionBase.CopyTo(Array, Int32) 方法

定义

将当前 InternalDataCollectionBase 的所有元素复制到一维 Array,从指定的 InternalDataCollectionBase 索引开始。Copies all the elements of the current InternalDataCollectionBase to a one-dimensional Array, starting at the specified InternalDataCollectionBase index.

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

参数

ar
Array

要将当前 Array 对象的元素复制到其中的一维 InternalDataCollectionBaseThe one-dimensional Array to copy the current InternalDataCollectionBase object's elements into.

index
Int32

从其所在位置开始复制对象的目标 Array 索引。The destination Array index to start copying into.

实现

注解

此方法可由派生类重写。This method can be overridden by a derived class.

不应将 BaseCollection 类及其成员用作独立组件,而是用作其他集合类从中派生标准功能的类。The BaseCollection class and its members are not intended for use as a stand-alone component, but as the class from which other collection classes derive standard functionality.

适用于