Share via


DataServiceQuery<TElement>.BeginExecute Method

Starts an asynchronous network operation that executes the query represented by this object instance.

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

Syntax

'Declaration
Public Function BeginExecute ( _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As DataServiceQuery 
Dim callback As AsyncCallback 
Dim state As Object 
Dim returnValue As IAsyncResult 

returnValue = instance.BeginExecute(callback, _
    state)
public IAsyncResult BeginExecute(
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginExecute(
    AsyncCallback^ callback, 
    Object^ state
)
member BeginExecute : 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult
public function BeginExecute(
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • state
    Type: System.Object
    User defined object used to transfer state between the start of the operation and the callback defined by callback.

Return Value

Type: System.IAsyncResult
An IAsyncResult that represents the status of the asynchronous operation.

See Also

Reference

DataServiceQuery<TElement> Class

System.Data.Services.Client Namespace