キャプチャの数を取得します。
Public Overridable ReadOnly Property Count As Integer Implements _ ICollection.Count
[C#]
public virtual int Count {get;}
[C++]
public: __property virtual int get_Count();
[JScript]
public function get Count() : int;
プロパティ値
キャプチャの数。
実装
解説
一致する対象をすべて見つけるために、Count プロパティにアクセスした直後に正規表現エンジンを実行する必要があります。しかし、一致する対象を列挙するために GetEnumerator が使用されている場合は、正規表現エンジンは必要な検索だけを実行します。
必要条件
プラットフォーム: 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
参照
MatchCollection クラス | MatchCollection メンバ | System.Text.RegularExpressions 名前空間