Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CaptureCollection Class

CaptureCollection Class

Represents a sequence of capture substrings. CaptureCollection returns the set of captures done by a single capturing group.

For a list of all members of this type, see CaptureCollection Members.


[Visual Basic]
Public Class CaptureCollection
   Implements ICollection, IEnumerable
public class CaptureCollection : ICollection, IEnumerable
public __gc class CaptureCollection : public ICollection,
class CaptureCollection implements ICollection, IEnumerable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The collection is immutable (read-only) and has no public constructor. Instances are returned in the Captures collection.


Namespace: System.Text.RegularExpressions

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System (in System.dll)

See Also

CaptureCollection Members | System.Text.RegularExpressions Namespace

© 2015 Microsoft