DataServiceQuery<TElement>.EndExecute Method

Ends an asynchronous query request to a data service.

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

Syntax

'Declaration
Public Function EndExecute ( _
    asyncResult As IAsyncResult _
) As IEnumerable(Of TElement)
'Usage
Dim instance As DataServiceQuery 
Dim asyncResult As IAsyncResult 
Dim returnValue As IEnumerable(Of TElement)

returnValue = instance.EndExecute(asyncResult)
public IEnumerable<TElement> EndExecute(
    IAsyncResult asyncResult
)
public:
IEnumerable<TElement>^ EndExecute(
    IAsyncResult^ asyncResult
)
member EndExecute : 
        asyncResult:IAsyncResult -> IEnumerable<'TElement> 
public function EndExecute(
    asyncResult : IAsyncResult
) : IEnumerable<TElement>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TElement>
Returns an IEnumerable<T> that contains the results of the query operation.

Exceptions

Exception Condition
DataServiceQueryException

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

See Also

Reference

DataServiceQuery<TElement> Class

System.Data.Services.Client Namespace