Bagikan melalui


DesignerVerbCollection.CopyTo(DesignerVerb[], Int32) Metode

Definisi

Menyalin anggota koleksi ke array yang ditentukan DesignerVerb dimulai pada indeks tujuan yang ditentukan.

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

Parameter

array
DesignerVerb[]

Array untuk menyalin anggota koleksi.

index
Int32

Indeks tujuan yang akan mulai disalin.

Contoh

Contoh kode berikut menunjukkan cara menyalin kumpulan DesignerVerb objek ke array.

// Copies the contents of the collection, beginning at index 0,
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection->CopyTo( verbs, 0 );
// Copies the contents of the collection, beginning at index 0, 
// to the specified DesignerVerb array.
// 'verbs' is a DesignerVerb array.
collection.CopyTo( verbs, 0 );
' Copies the contents of the collection, beginning at index 0, 
' to the specified DesignerVerb array.
' 'verbs' is a DesignerVerb array.
collection.CopyTo(verbs, 0)

Berlaku untuk