語言

ProviderConnectionPointCollection.CopyTo 方法

定義

將集合複製到一組 ProviderConnectionPoint 物件陣列。

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

參數

array
ProviderConnectionPoint[]

一個接收集合中複製項目的物件陣列 ProviderConnectionPoint 。

index
Int32

插入集合內容的陣列起始點。

備註

此 CopyTo 方法會將集合中 ProviderConnectionPointCollection 的所有成員複製到一個相容的一維物件陣列 ProviderConnectionPoint ,從參數指定的 index 陣列位置開始。

當你想將不同集合中的物件合併成一個相容的陣列,然後能用陣列方法存取陣列中的物件時,這個 CopyTo 方法非常有用。

適用於

另請參閱