CodeTypeReferenceCollection.CopyTo(CodeTypeReference[], Int32) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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 alandan büyüktür.
array parametresidirnull.
index parametresi hedef dizinin en küçük dizininden küçük.
Ö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 );
' Copies the contents of the collection, beginning at index 0,
' to the specified CodeTypeReference array.
' 'references' is a CodeTypeReference array.
collection.CopyTo(references, 0)