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!

MatchCollection.CopyTo

Copies all the elements of the collection to the given array starting 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 array where copying is to begin.

Remarks

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

See Also

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