Returns an enumerator that can be used to iterate through a collection.
Get collection enumerator.
Visual Basic (Declaration) | |
---|---|
Public Function GetEnumerator() As IEnumerator |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public IEnumerator GetEnumerator() |
Return Value
An IEnumerator object that can be used to iterate through the collection.Collection enumerator.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family