NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MatchCollection.Count

Returns the number of captures.

[Visual Basic]
Overridable Public ReadOnly Property Count As Integer
[C#]
public int Count {virtual get;}
[C++]
public: __property virtual int get_Count();
[JScript]
public function get Count() : int;

Remarks

The Count property can be one or more (group zero is always included and always counts for one). Note that as soon as the Count property is access, the Regex engine must be run to find all matches; however, if GetEnumerator is used to enumerate the matches, the Regex engine will only execute the matches that are required.

See Also

MatchCollection Class | MatchCollection Members | System.Text.RegularExpressions Namespace