GroupCollection.IEnumerable<Group>.GetEnumerator 方法

定義

提供逐一查看群組集合的列舉值。

 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 ();
abstract member System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Group>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Text.RegularExpressions.Group>
override this.System.Collections.Generic.IEnumerable<System.Text.RegularExpressions.Group>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Text.RegularExpressions.Group>
Function GetEnumerator () As IEnumerator(Of Group) Implements IEnumerable(Of Group).GetEnumerator

傳回

包含群組集合中所有 Group 物件的列舉值。

實作

備註

您不應該呼叫這個方法來擷取列舉值,讓您逐一查看 Group 集合中的物件,而是應該使用群組反復專案建構 (,例如 foreach C# 和 For EachNext ... 中的 Visual Basic) 程式設計語言所提供的。

適用於