Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataServiceQuery(Of TElement).IEnumerable.GetEnumerator Method

Executes the query and returns the results as a collection.

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

Private Function GetEnumerator As IEnumerator 
	Implements IEnumerable.GetEnumerator
Dim instance As DataServiceQuery 
Dim returnValue As IEnumerator 

returnValue = CType(instance, 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.

© 2015 Microsoft