DataServiceContext.BeginExecute<TElement> Method (Uri, AsyncCallback, Object)
Asynchronously sends the request so that this call does not block processing while waiting for the results from the service.
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
public IAsyncResult BeginExecute<TElement>( Uri requestUri, AsyncCallback callback, Object state )
The type returned by the query.
- Type: System.Uri
The URI to which the query request will be sent. The URI may be any valid data service URI; it can contain $ query parameters.
- Type: System.AsyncCallback
Delegate to invoke when results are available for client consumption.
- Type: System.Object
User-defined state object passed to the callback.
Return ValueType: System.IAsyncResult
An object that is used to track the status of the asynchronous operation.
The method BeginExecute uses the same semantics as Execute, however this method asynchronously sends the request so that this call does not block processing while waiting for the results from the service. According to the standard begin-end asynchronous pattern, the provided callback is invoked when query results are retrieved.