Share via


DataServiceQuery.BeginExecute Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Asynchronously sends a request to execute the data service query.

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

Syntax

'Declaration
Public Function BeginExecute ( _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
public IAsyncResult BeginExecute(
    AsyncCallback callback,
    Object state
)

Parameters

  • callback
    Type: System.AsyncCallback
    The delegate to invoke when results are available for client consumption.
  • state
    Type: System.Object
    The user-defined state object passed to the callback.

Return Value

Type: System.IAsyncResult
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. The provided callback is invoked when query results are retrieved.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.