UsingTaskCollection.CopyTo UsingTaskCollection.CopyTo UsingTaskCollection.CopyTo UsingTaskCollection.CopyTo Method

定义

从目标数组的指定索引处开始将整个 UsingTaskCollection 复制到兼容的一维 ArrayCopies the entire UsingTaskCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

重载

CopyTo(UsingTask[], Int32) CopyTo(UsingTask[], Int32) CopyTo(UsingTask[], Int32) CopyTo(UsingTask[], Int32)

从目标数组的指定索引处开始,将整个 UsingTaskCollection 复制到 Array 对象的一维兼容 UsingTaskCopies the entire UsingTaskCollection to a compatible one-dimensional Array of UsingTask objects, starting at the specified index of the target array.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

从目标数组的指定索引处开始将整个 UsingTaskCollection 复制到兼容的一维 ArrayCopies the entire UsingTaskCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

CopyTo(UsingTask[], Int32) CopyTo(UsingTask[], Int32) CopyTo(UsingTask[], Int32) CopyTo(UsingTask[], Int32)

从目标数组的指定索引处开始,将整个 UsingTaskCollection 复制到 Array 对象的一维兼容 UsingTaskCopies 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)

参数

array
UsingTask[]

Array 对象的一维 UsingTask,该数组是从 UsingTaskCollection 复制的元素的目标位置。The one-dimensional Array of UsingTask objects that is the destination of the elements copied from UsingTaskCollection. Array 必须具有从零开始的索引。The Array must have zero-based indexing.

index
Int32 Int32 Int32 Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

从目标数组的指定索引处开始将整个 UsingTaskCollection 复制到兼容的一维 ArrayCopies 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

参数

array
Array Array Array Array

一维 Array,它是从 UsingTaskCollection 复制的元素的目标。The one-dimensional Array that is the destination of the elements copied from UsingTaskCollection. Array 必须具有从零开始的索引。The Array must have zero-based indexing.

index
Int32 Int32 Int32 Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

实现

适用于