DataServiceQuery(Of TElement).IEnumerable.GetEnumerator Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Executes the query and returns the results as a collection.

Namespace:   System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Private Function GetEnumerator As IEnumerator
	Implements IEnumerable.GetEnumerator

Return Value

Type: System.Collections.IEnumerator

An enumerator over the query results.

When the IEnumerable.GetEnumerator method is called, the DataServiceQuery(Of TElement) is executed against the service.

GetEnumerator returns an enumerable the first time it is called. On successive calls it returns null.

.NET Framework
Available since 3.5
Available since 2.0
Return to top