Udostępnij za pośrednictwem


DataServiceContext.BeginExecute<T> Method (DataServiceQueryContinuation<T>, AsyncCallback, Object)

Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result.

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

Syntax

'Declaration
Public Function BeginExecute(Of T) ( _
    continuation As DataServiceQueryContinuation(Of T), _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As DataServiceContext 
Dim continuation As DataServiceQueryContinuation(Of T)
Dim callback As AsyncCallback 
Dim state As Object 
Dim returnValue As IAsyncResult 

returnValue = instance.BeginExecute(continuation, _
    callback, state)
public IAsyncResult BeginExecute<T>(
    DataServiceQueryContinuation<T> continuation,
    AsyncCallback callback,
    Object state
)
public:
generic<typename T>
IAsyncResult^ BeginExecute(
    DataServiceQueryContinuation<T>^ continuation, 
    AsyncCallback^ callback, 
    Object^ state
)
member BeginExecute : 
        continuation:DataServiceQueryContinuation<'T> * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult
JScript does not support generic types and methods.

Type Parameters

  • T
    The type returned by the query.

Parameters

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

Return Value

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

Remarks

The supplied DataServiceQueryContinuation<T> object contains the URI that, when executed, returns the next page of data in the query result.

See Also

Reference

DataServiceContext Class

BeginExecute Overload

System.Data.Services.Client Namespace