Returns an enumerator that iterates through the collection.

Namespace: SampleClassLibrary
Assembly: SampleClassLibrary (in SampleClassLibrary.dll)

Public Function GetEnumerator() As IEnumerator(Of String) Implements  _ 
IEnumerable(Of String).GetEnumerator
This language is not supported or no code example is available.
public IEnumerator<string> GetEnumerator()
This language is not supported or no code example is available.
member GetEnumerator : unit -> IEnumerator<string>
This language is not supported or no code example is available.
public:  
IEnumerator<String^>^ GetEnumerator()
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Return Value

Type: IEnumerator<string>

A IEnumerator<T> that can be used to iterate through the collection.

Implements

IEnumerable<String>.GetEnumerator

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library