System.Text.RegularExpressions.CaptureCollection Class

Represents the set of captures made by a single capturing group.

See Also: CaptureCollection Members

Syntax

public class CaptureCollection : ICollection

Remarks

The collection is immutable (read-only) and has no public constructor. The System.Text.RegularExpressions.CaptureCollection object contains one or more System.Text.RegularExpressions.Capture objects.

Instances of the System.Text.RegularExpressions.CaptureCollection class are returned by the following properties:

To iterate through the members of the collection, you should use the collection iteration construct provided by your language (such as foreach in C# and For Each…Next in Visual Basic) instead of retrieving the enumerator that is returned by the CaptureCollection.GetEnumerator method.

Requirements

Namespace: System.Text.RegularExpressions
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0