Aracılığıyla paylaş


CodeAttributeArgumentCollection.CopyTo(CodeAttributeArgument[], Int32) Yöntem

Tanım

Koleksiyon nesnelerini belirtilen dizinden başlayarak tek boyutlu Array bir örneğe kopyalar.

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

Parametreler

array
CodeAttributeArgument[]

Koleksiyondan kopyalanan değerlerin hedefi olan tek boyutlu Array .

index
Int32

Eklemeye başlanması gereken dizinin dizini.

Özel durumlar

Hedef dizi çok boyutludur.

-veya-

içindeki CodeAttributeArgumentCollection öğ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

Aşağıdaki örnekte, bir CodeAttributeArgumentCollection nesnenin içeriğinin belirtilen dizin değerinden başlayan bir CodeAttributeArgument diziye nasıl kopyalanması gösterilmektedir.

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

Şunlara uygulanır