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.