CopyTo Method
Collapse the table of content
Expand the table of content

CaptureCollection.CopyTo Method

Copies all the elements of the collection to the given array beginning at the given index.

Namespace: System.Text.RegularExpressions
Assembly: System (in system.dll)

public void CopyTo (
	Array array,
	int arrayIndex
public final void CopyTo (
	Array array, 
	int arrayIndex
public final function CopyTo (
	array : Array, 
	arrayIndex : int



The array the collection is to be copied into.


The position in the destination array where copying is to begin.

Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

© 2016 Microsoft