GetEnumerator Method
Collapse the table of content
Expand the table of content

GroupCollection.GetEnumerator Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns an enumerator that can iterate through the collection.

Namespace:  System.Text.RegularExpressions
Assembly:  System (in System.dll)

'Declaration
Public Function GetEnumerator As IEnumerator

Return Value

Type: System.Collections.IEnumerator
An object that contains all Group objects in the GroupCollection.

Implements

IEnumerable.GetEnumerator

Instead of calling the GetEnumerator 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 in Visual Basic) that is provided by your programming language.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft