ProviderCollection.CopyTo(ProviderBase[], Int32) 方法

定義

從指定之索引處開始,將集合的內容複製到指定的陣列。Copies the contents of the collection to the given array starting at the specified index.

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

參數

array
ProviderBase[]

要將集合之項目複製到的陣列。The array to copy the elements of the collection to.

index
Int32

集合項目的索引,複製處理序會從該位置開始。The index of the collection item at which to start the copying process.

備註

要將專案複製到其中的陣列必須有以零為起始的索引。The array into which the items are copied must have zero-based indexing.

適用於