Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

MatchCollection Class

Represents the set of successful matches found by iteratively applying a regular expression pattern to the input string.

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

System.Object
   System.Text.RegularExpressions.MatchCollection

[Visual Basic]
<Serializable>
Public Class MatchCollection
   Implements ICollection, IEnumerable
[C#]
[Serializable]
public class MatchCollection : ICollection, IEnumerable
[C++]
[Serializable]
public __gc class MatchCollection : public ICollection,
   IEnumerable
[JScript]
public
   Serializable
class MatchCollection 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.

Remarks

The collection is immutable (read-only) and has no public constructor. Instances are returned through the Matches method.

Requirements

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

MatchCollection Members | System.Text.RegularExpressions Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.