MatchCollection クラス

正規表現パターンを入力文字列に繰り返し適用したときに、パターンに一致した一連の対象を表します。

この型のすべてのメンバの一覧については、MatchCollection メンバ を参照してください。

System.Object
   System.Text.RegularExpressions.MatchCollection

<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

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

このコレクションは変更不可 (読み取り専用) で、パブリック コンストラクタはありません。インスタンスは Matches メソッドを通じて返されます。

必要条件

名前空間: System.Text.RegularExpressions

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

アセンブリ: System (System.dll 内)

参照

MatchCollection メンバ | System.Text.RegularExpressions 名前空間