GroupCollection.IEnumerable<Group>.GetEnumerator 方法

定义

提供一个循环访问组集合的枚举器。Provides an enumerator that iterates through the group collection.

 virtual System::Collections::Generic::IEnumerator<System::Text::RegularExpressions::Group ^> ^ System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Group>.GetEnumerator() = System::Collections::Generic::IEnumerable<System::Text::RegularExpressions::Group ^>::GetEnumerator;
System.Collections.Generic.IEnumerator<System.Text.RegularExpressions.Group> IEnumerable<Group>.GetEnumerator ();
Function GetEnumerator () As IEnumerator(Of Group) Implements IEnumerable(Of Group).GetEnumerator

返回

一个包含组集合中的所有 Group 对象的枚举器。An enumerator that contains all Group objects in the group collection.

实现

注解

不是调用此方法来检索允许您循环Group访问集合中的对象的枚举器,而应使用组迭代构造( foreachFor Each C#和 .。。NextInstead of calling this method to retrieve an enumerator that lets you iterate through the Group objects in the collection, you should use the group iteration construct (such as foreach in C# and For EachNext 在 Visual Basic)中,由您的编程语言提供。in Visual Basic) that is provided by your programming language.

适用于