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

CaptureCollection.GetEnumerator Method

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

Provides an enumerator that iterates through the collection.

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

public IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
An object that contains all Capture objects within the CaptureCollection.

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