GroupCollection.IEnumerable<KeyValuePair<String,Group>>.GetEnumerator 方法

定义

提供一个循环访问组集合的枚举器。

 virtual System::Collections::Generic::IEnumerator<System::Collections::Generic::KeyValuePair<System::String ^, System::Text::RegularExpressions::Group ^>> ^ System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Text.RegularExpressions.Group>>.GetEnumerator() = System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Text::RegularExpressions::Group ^>>::GetEnumerator;
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,System.Text.RegularExpressions.Group>> IEnumerable<KeyValuePair<string,Group>>.GetEnumerator ();
abstract member System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Text.RegularExpressions.Group>>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, System.Text.RegularExpressions.Group>>
override this.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Text.RegularExpressions.Group>>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string, System.Text.RegularExpressions.Group>>
Function GetEnumerator () As IEnumerator(Of KeyValuePair(Of String, Group)) Implements IEnumerable(Of KeyValuePair(Of String, Group)).GetEnumerator

返回

IEnumerator<KeyValuePair<String,Group>>

一个包含 Group 集合中的所有名称和对象的枚举器。

实现

注解

应使用组迭代构造 ((如 foreach C# 和 For Each... 中)而不是调用此方法来检索循环Group访问集合中的对象的枚举器。Next 在编程语言提供的Visual Basic) 中。

适用于