UsingTaskCollection.CopyTo Method

Definition

Copies the entire UsingTaskCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

Overloads

CopyTo(UsingTask[], Int32)

Copies the entire UsingTaskCollection to a compatible one-dimensional Array of UsingTask objects, starting at the specified index of the target array.

CopyTo(Array, Int32)

Copies the entire UsingTaskCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

CopyTo(UsingTask[], Int32)

Copies the entire UsingTaskCollection to a compatible one-dimensional Array of UsingTask objects, starting at the specified index of the target array.

public:
 void CopyTo(cli::array <Microsoft::Build::BuildEngine::UsingTask ^> ^ array, int index);
public void CopyTo (Microsoft.Build.BuildEngine.UsingTask[] array, int index);
member this.CopyTo : Microsoft.Build.BuildEngine.UsingTask[] * int -> unit
Public Sub CopyTo (array As UsingTask(), index As Integer)

Parameters

array
UsingTask[]

The one-dimensional Array of UsingTask objects that is the destination of the elements copied from UsingTaskCollection. The Array must have zero-based indexing.

index
Int32

The zero-based index in array at which copying begins.

Applies to

CopyTo(Array, Int32)

Copies the entire UsingTaskCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

Parameters

array
Array

The one-dimensional Array that is the destination of the elements copied from UsingTaskCollection. The Array must have zero-based indexing.

index
Int32

The zero-based index in array at which copying begins.

Implements

Applies to