Share via


ReadOnlyList<T>.GetEnumerator Method

Returns an enumerator that iterates through the list.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator(Of T)
'Usage
Dim instance As ReadOnlyList 
Dim returnValue As IEnumerator(Of T)

returnValue = instance.GetEnumerator()
public IEnumerator<T> GetEnumerator()
public:
virtual IEnumerator<T>^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator<'T> 
override GetEnumerator : unit -> IEnumerator<'T> 
public final function GetEnumerator() : IEnumerator<T>

Return Value

Type: System.Collections.Generic.IEnumerator<T>
An enumerator that iterates through the list.

Implements

IEnumerable<T>.GetEnumerator()

See Also

Reference

ReadOnlyList<T> Structure

Microsoft.SqlServer.Management.Sdk.Sfc Namespace