ConsumerConnectionPointCollection.CopyTo Method

Definition

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)

Parameters

array
ConsumerConnectionPoint[]

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.

Remarks

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. With the array, you can then use array syntax to access the items in the Array object.

Applies to