DataServiceQuery.Execute 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 against the data service.

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

public IEnumerable Execute()

Return Value

Type: System.Collections.IEnumerable

An IEnumerable<T> that contains the results of the query operation.

Exception Condition
DataServiceQueryException

When the data service returns an HTTP 404: Resource Not Found error.

The Execute method is used to execute the given data service query.

The Execute method generates an HTTP GET request that is set to the data service.

.NET Framework
Available since 3.5
Return to top
Show: