DataServiceQuery.BeginExecute(AsyncCallback, Object) Method

Definition

Asynchronously sends a request to execute the data service query.

public:
 IAsyncResult ^ BeginExecute(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecute (AsyncCallback callback, object state);
override this.BeginExecute : AsyncCallback * obj -> IAsyncResult
member this.BeginExecute : AsyncCallback * obj -> IAsyncResult
Public Function BeginExecute (callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

callback
AsyncCallback

Delegate to invoke when results are available for client consumption.

state
Object

User-defined state object passed to the callback.

Returns

An IAsyncResult object that is used to track the status of the asynchronous operation.

Remarks

The returned IAsyncResult object is used to determine when the asynchronous operation has completed. For more information, see Asynchronous Operations.

The BeginExecute method uses the same semantics as the Execute method, however BeginExecute asynchronously sends the request so that the 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.

Applies to