Share via


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

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Executes the query and returns the result as a collection.

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

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator(Of TElement)
    Implements IEnumerable(Of TElement).GetEnumerator
IEnumerator<TElement> IEnumerable<TElement>.GetEnumerator()

Return Value

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

Implements

IEnumerable<T>.GetEnumerator()

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.