DataServiceQuery.EndExecute Method
Called to complete the asynchronous operation of executing a data service query.
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
'Usage
Dim instance As DataServiceQuery
Dim asyncResult As IAsyncResult
Dim returnValue As IEnumerable
returnValue = instance.EndExecute(asyncResult)
public IEnumerable EndExecute(
IAsyncResult asyncResult
)
public:
IEnumerable^ EndExecute(
IAsyncResult^ asyncResult
)
member EndExecute :
asyncResult:IAsyncResult -> IEnumerable
public function EndExecute(
asyncResult : IAsyncResult
) : IEnumerable
Parameters
- asyncResult
Type: System.IAsyncResult
The result from the BeginExecute operation that contains the query results.
Return Value
Type: System.Collections.IEnumerable
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. |