GroupCollection.Count 屬性

定義

傳回集合中的群組數。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

屬性值

集合中的群組數。The number of groups in the collection.

實作

備註

GroupCollection 物件一律至少有一個成員。The GroupCollection object always has at least one member. 如果比對不成功,Match.Groups 屬性會傳回包含單一成員的 GroupCollection 物件。If a match is unsuccessful, the Match.Groups property returns a GroupCollection object that contains a single member.

適用於