TemplateGroupCollection.CopyTo(TemplateGroup[], Int32) TemplateGroupCollection.CopyTo(TemplateGroup[], Int32) TemplateGroupCollection.CopyTo(TemplateGroup[], Int32) TemplateGroupCollection.CopyTo(TemplateGroup[], Int32) Method

定義

將集合中的群組複製到相容的一維陣列,從目標陣列的指定索引處開始。Copies the groups in the collection to a compatible one-dimensional array, starting at the specified index of the target array.

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

參數

array
TemplateGroup[]

Array,複製群組的目的地。The Array that is the destination of the copied groups. Array 必須有以零為起始的索引。The Array must have zero-based indexing.

index
Int32 Int32 Int32 Int32

array 中以零起始的索引,即開始複製的位置。The zero-based index in array at which copying begins.

例外狀況

array 是多維的。array is multidimensional.

-或--or- index 大於或等於 array 的長度。index is greater than or equal to the length of array.

-或--or- 來源 TemplateGroupCollection 中的項目數大於 indexarray 結尾之間的可用空間。The number of elements in the source TemplateGroupCollection is greater than the available space from index to the end of array.

備註

群組項目複製到Array物件中群組項目編製索引內的相同順序TemplateGroupCollection物件。The group elements are copied to the Array object in the same order in which the group elements are indexed within the TemplateGroupCollection object.

適用於

另請參閱