Copies all the elements of the collection to the given array beginning at the given index.
[Visual Basic] Overridable Public Sub CopyTo( _ ByVal array As Array, _ ByVal arrayIndex As Integer _ ) [C#] public virtual void CopyTo( Array array, int arrayIndex ); [C++] public: virtual void CopyTo( Array* array, int arrayIndex ); [JScript] public function CopyTo( array : Array, arrayIndex : int );
Since 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.
CaptureCollection Class | CaptureCollection Members | System.Text.RegularExpressions Namespace