DataServiceQuery<TElement>.IEnumerable<TElement>.GetEnumerator Method

Executes the query and returns the result as a collection.

Supported only by the WCF Data Services 5.0 client for Silverlight.

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

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator(Of TElement)
    Implements IEnumerable(Of TElement).GetEnumerator
'Usage
Dim instance As DataServiceQuery 
Dim returnValue As IEnumerator(Of TElement)

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

Return Value

Type: System.Collections.Generic.IEnumerator<TElement>
An enumerator over the results of the query.

Implements

IEnumerable<T>.GetEnumerator()

See Also

Reference

DataServiceQuery<TElement> Class

System.Data.Services.Client Namespace