Поделиться через


DataServiceQuery.IEnumerable.GetEnumerator Method

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

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

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

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator
    Implements IEnumerable.GetEnumerator
IEnumerator IEnumerable.GetEnumerator()

Return Value

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

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.

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.