CodeTypeReferenceCollection.CopyTo(CodeTypeReference[], Int32) Yöntem

Tanım

Koleksiyondaki öğeleri belirtilen dizinde belirtilen tek boyutlu Array öğeye kopyalar.

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

Parametreler

array
CodeTypeReference[]

Koleksiyondan kopyalanan değerlerin hedefi olan tek boyutlu Array .

index
Int32

Eklemeye başlanması gereken dizinin dizini.

Özel durumlar

array parametresi çok boyutludur.

-veya-

içindeki CodeTypeReferenceCollection öğe sayısı, parametresi tarafından index belirtilen hedef dizinin dizini ile hedef dizinin sonu arasındaki kullanılabilir boşluktan büyüktür.

array parametresi null'dir.

index parametresi, hedef dizinin en düşük dizininden küçüktür.

Örnekler

// Copies the contents of the collection, beginning at index 0,
// to the specified CodeTypeReference array.
// 'references' is a CodeTypeReference array.
collection.CopyTo( references, 0 );
' Copies the contents of the collection, beginning at index 0, 
' to the specified CodeTypeReference array.
' 'references' is a CodeTypeReference array.
collection.CopyTo(references, 0)

Şunlara uygulanır

Ayrıca bkz.