CodeParameterDeclarationExpressionCollection.CopyTo Yöntem

Tanım

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

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

Parametreler

array
CodeParameterDeclarationExpression[]

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 CodeParameterDeclarationExpressionCollection öğ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

Aşağıdaki örnekte, belirtilen CodeParameterDeclarationExpressionCollectionArray dizin değerinde bir başlangıcın içeriğinin nasıl kopyalanması gösterilmektedir.

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

Şunlara uygulanır

Ayrıca bkz.