Retrieves the enumerator for a collection. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Public Class SomeType1
End Class
Public Class SomeType2
End Class
Dim returnValue As IEnumerator(Of SomeType2)
Dim readOnlyKeyedCollection1 As ReadOnlyKeyedCollection(Of SomeType1, SomeType2)
returnValue = readOnlyKeyedCollection1.GetEnumerator()

Syntax

Visual Basic
Public NotOverridable Function GetEnumerator() As IEnumerator(Of TValue)
C#
public sealed IEnumerator<TValue> GetEnumerator();
C++
public:
virtual IEnumerator<TValue>^ arbitrary-name() sealed = GetEnumerator;
J#
public final IEnumerator<TValue> GetEnumerator();
JScript
JScript does not support Generics.

Return Value

An enumerator to enable iterating through the collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista, and Windows 2000

Target Platforms

See Also