OutputCacheProviderCollection.CopyTo(OutputCacheProvider[], Int32) 方法

定义

将输出缓存提供程序复制到兼容的一维数组的指定索引处。Copies the output-cache providers to a compatible one-dimensional array at the specified index.

public:
 void CopyTo(cli::array <System::Web::Caching::OutputCacheProvider ^> ^ array, int index);
public void CopyTo (System.Web.Caching.OutputCacheProvider[] array, int index);
override this.CopyTo : System.Web.Caching.OutputCacheProvider[] * int -> unit
Public Sub CopyTo (array As OutputCacheProvider(), index As Integer)

参数

array
OutputCacheProvider[]

一维数组,是从集合中复制的元素的目标,并且索引必须从零开始。The one-dimensional array that is the destination of the elements copied from the collection The array must have zero-based indexing.

index
Int32

数组中的复制起始点。The point in the array where the copying starts.

注解

要将项复制到其中的数组必须具有从零开始的索引。The array into which the items are copied must have a zero-based index.

适用于