DataServiceQuery<TElement>.GetEnumerator Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Executes the query and returns the results as a collection.

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

public IEnumerator<TElement> GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<TElement>

A typed enumerator over the results in which TEntity represents the type of the query results.

When the GetEnumerator method is called, the DataServiceQuery<TElement> is executed against the service.

.NET Framework
Available since 3.5
Return to top
Show: