共用方式為


WebPartDescriptionCollection.CopyTo(WebPartDescription[], Int32) 方法

定義

複製集合至 WebPartDescription 物件的陣列。

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

參數

array
WebPartDescription[]

WebPartDescription 物件的陣列,包含複製的集合。

index
Int32

放置集合內容的陣列起點。

備註

當您想要組合可包含WebPartDescription集合中WebPartDescriptionCollection物件的自定義陣列時,此方法CopyTo會很有用。

適用於

另請參閱