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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.