ConsumerConnectionPointCollection.CopyTo(ConsumerConnectionPoint[], Int32) 方法

定义

ConsumerConnectionPointCollection 集合中的所有项复制到一个兼容的一维数组中,该数组的元素为 ConsumerConnectionPoint 对象,复制从目标数组的指定索引处开始进行。Copies all the items from the ConsumerConnectionPointCollection collection to a compatible one-dimensional array of ConsumerConnectionPoint objects, starting at the specified index in the target array.

public:
 void CopyTo(cli::array <System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^> ^ array, int index);
public void CopyTo (System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint[] array, int index);
member this.CopyTo : System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint[] * int -> unit
Public Sub CopyTo (array As ConsumerConnectionPoint(), index As Integer)

参数

array
ConsumerConnectionPoint[]

ConsumerConnectionPoint 对象的从零开始的数组,它接收从当前 ConsumerConnectionPointCollection 复制的项。A zero-based array of ConsumerConnectionPoint objects that receives the copied items from the current ConsumerConnectionPointCollection.

index
Int32

目标数组中开始接收复制内容的位置。The position in the target array at which to start receiving the copied content.

注解

使用此方法将当前ConsumerConnectionPointCollection对象的内容复制到指定的从零开始的数组中。Use this method to copy the contents of the current ConsumerConnectionPointCollection object into the specified zero-based array. 从目标数组的指定索引处开始复制项。Items are copied starting at the specified index of the target array. 使用数组时, 可以使用数组语法来访问Array对象中的项。With the array, you can then use array syntax to access the items in the Array object.

适用于