MatchCollection.Count プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MatchCollection.Count プロパティの意味・解説 

MatchCollection.Count プロパティ

キャプチャの数を取得します

名前空間: System.Text.RegularExpressions
アセンブリ: System (system.dll 内)
構文構文

解説解説

一致する対象をすべて見つけるために、Count プロパティアクセスした直後正規表現エンジン実行する必要があります。しかし、一致する対象列挙するために GetEnumerator が使用されている場合は、正規表現エンジン必要な検索だけを実行します

使用例使用例

このプロパティ使用方法を示すコード例次に示します

// Report the number of matches found.
Console.WriteLine("{0} matches found.", matches.Count);
// Report the number of matches found.
Console::WriteLine( "{0} matches found.", matches->Count );
// Report the number of matches found.
Console.WriteLine("{0} matches found.", (Int32)matches.get_Count());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MatchCollection クラス
MatchCollection メンバ
System.Text.RegularExpressions 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

MatchCollection.Count プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MatchCollection.Count プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS