HttpApplicationStateBase.CopyTo(Array, Int32) 方法

定义

在派生类中重写时,从数组中指定的索引开始,将集合的元素复制到该数组。When overridden in a derived class, copies the elements of the collection to an array, starting at the specified index in the array.

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

参数

array
Array

作为从集合中复制的元素的目标位置的一维数组。The one-dimensional array that is the destination for the elements that are copied from the collection. 该数组的索引必须从零开始。The array must have zero-based indexing.

index
Int32

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

实现

异常

始终。Always.

适用于