ConfigurationLockCollection.CopyTo(String[], Int32) Method

Definition

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

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

Parameters

array
String[]

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

index
Int32

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

Applies to