Freigeben über


UITestControlCollection.GetEnumerator-Methode

Gibt einen Enumerator zurück, der die UITestControlCollection-Instanz durchläuft.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator(Of UITestControl)
public IEnumerator<UITestControl> GetEnumerator()
public:
virtual IEnumerator<UITestControl^>^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator<UITestControl> 
override GetEnumerator : unit -> IEnumerator<UITestControl> 
public final function GetEnumerator() : IEnumerator<UITestControl>

Rückgabewert

Typ: System.Collections.Generic.IEnumerator<UITestControl>
Ein IEnumerator-Element für die UITestControlCollection-Instanz.

Implementiert

IEnumerable<T>.GetEnumerator()

.NET Framework-Sicherheit

Siehe auch

Referenz

UITestControlCollection Klasse

Microsoft.VisualStudio.TestTools.UITesting-Namespace