ProviderCollection.ICollection.CopyTo(Array, Int32) 方法

定義

從特定的陣列索引開始,將 ProviderCollection 的項目複製到陣列中。Copies the elements of the ProviderCollection to an array, starting at a particular array index.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo

參數

array
Array

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

index
Int32

要開始從集合複製提供者執行個體的陣列索引。The index of the array at which to start copying provider instances from the collection.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 ICollection.CopyTo 執行個體轉換成 ICollection 介面時,才能使用這個成員。It can be used only when the ICollection.CopyTo instance is cast to an ICollection interface.

適用於