StreamingCollection<T>.GetEnumerator Method

This collection enables access to the objects through both a generic and non-generic enumerator.

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

Syntax

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

Return Value

Type: System.Collections.Generic.IEnumerator<T>
Returns IEnumerator<T>.

Implements

IEnumerable<T>.GetEnumerator()

Exceptions

Exception Condition
StreamingCollectionUnsupportedOperationException

Thrown if a second enumerator is requested after elements have been consumed.

.NET Framework Security

See Also

Reference

StreamingCollection<T> Class

Microsoft.TeamFoundation.Framework.Server Namespace