ConsumerConnectionPointCollection.CopyTo 方法

定義

從目標陣列的指定索引開始,複製 ConsumerConnectionPointCollection 集合的所有項目至 ConsumerConnectionPoint 物件的相容一維陣列。

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 所複製的項目。

index
Int32

目標陣列中開始接收複製內容的位置。

備註

使用這個方法可將目前物件的內容複寫 ConsumerConnectionPointCollection 到以零為基底的指定陣列中。 從目標陣列的指定索引處開始複製專案。 使用陣列,您就可以使用陣列語法來存取物件中的專案 Array

適用於