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當您想要將來自不同集合的物件合併成單一相容的陣列,然後才能使用陣列方法存取陣列中的專案時,此方法很有用。

適用於

另請參閱