WebPartConnectionCollection.CopyTo(WebPartConnection[], Int32) Metod

Definition

Kopierar elementen i WebPartConnectionCollection samlingen till en matris med början vid ett visst matrisindex.

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

Parametrar

array
WebPartConnection[]

Den endimensionella matris som elementen WebPartConnectionCollection från kopieras till. Matrisen måste ha nollbaserad indexering.

index
Int32

Det nollbaserade index array där kopieringen börjar.

Undantag

array är null.

index är mindre än noll.

Kommentarer

Den angivna matrisen måste vara av en kompatibel typ. Elementen kopieras till Array i samma ordning som uppräknaren itererar genom WebPartConnectionCollection samlingen.

Gäller för