NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CaptureCollection.CopyTo

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
);

Parameters

array
The array the collection is to be copied into.
arrayIndex
The position in the destination array where the copying is to begin.

Remarks

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.

See Also

CaptureCollection Class | CaptureCollection Members | System.Text.RegularExpressions Namespace