Export (0) Print
Expand All

DataServiceQuery(Of TElement).Execute Method

Executes the query and returns the results as a collection that implements IEnumerable.

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

Public Function Execute As IEnumerable(Of TElement)
Dim instance As DataServiceQuery 
Dim returnValue As IEnumerable(Of TElement)

returnValue = instance.Execute()

Return Value

Type: System.Collections.Generic.IEnumerable(Of TElement)
An IEnumerable(Of T) in which T represents the type of the query results.


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


When during materialization an object is encountered in the input stream that cannot be deserialized to an instance of T.

© 2014 Microsoft