Share via


TeamFoundationDataReader.GetEnumerator Method

Retrieves the enumerator for the current object in the reader.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

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

Return Value

Type: System.Collections.IEnumerator
The enumerator for the current object

Implements

IEnumerable.GetEnumerator()

Exceptions

Exception Condition
InvalidOperationException

If there are no more results left in the reader

InvalidCastException

If the current object in the reader is not an IEnumerable.

.NET Framework Security

See Also

Reference

TeamFoundationDataReader Class

Microsoft.TeamFoundation.Framework.Server Namespace