DataServiceQuery.IEnumerable.GetEnumerator Method

Gets the IEnumerator object that can be used to iterate through the collection returned by the query.

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

Syntax

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

returnValue = CType(instance, IEnumerable).GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
private:
virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator
private abstract GetEnumerator : unit -> IEnumerator  
private override GetEnumerator : unit -> IEnumerator
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Return Value

Type: System.Collections.IEnumerator
An enumerator over the query results.

Implements

IEnumerable.GetEnumerator()

Remarks

Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.

See Also

Reference

DataServiceQuery Class

System.Data.Services.Client Namespace