GroupCollection.Count Property

Definition

Returns the number of groups in the collection.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Property Value

Int32

The number of groups in the collection.

Implements

Remarks

The GroupCollection object always has at least one member. If a match is unsuccessful, the Match.Groups property returns a GroupCollection object that contains a single member.

Applies to