ToolsetCollection.CopyTo(Toolset[], Int32) 方法

定义

ToolsetCollection 的内容复制到兼容的一维 Array,从目标数组的指定索引处开始复制。Copies the contents of the ToolsetCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

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

参数

array
Toolset[]

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

arrayIndex
Int32

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

适用于