DataServiceContext.BeginExecute<T> 方法 (DataServiceQueryContinuation<T>, AsyncCallback, Object)
通过将请求异步发送到数据服务,在分页查询结果中检索下一页数据。
命名空间: System.Data.Services.Client
程序集: Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)
语法
声明
Public Function BeginExecute(Of T) ( _
continuation As DataServiceQueryContinuation(Of T), _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
用法
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 不支持一般类型和方法。
类型参数
- T
查询所返回的类型。
参数
- continuation
类型:System.Data.Services.Client.DataServiceQueryContinuation<T>
DataServiceQueryContinuation<T> 对象,表示要从数据服务返回的下一页数据。
- callback
类型:System.AsyncCallback
当结果可供客户端使用时将调用的委托。
- state
类型:System.Object
已传递到回调的用户定义的状态对象。
返回值
类型:System.IAsyncResult
表示操作状态的 IAsyncResult。
注释
所提供的 DataServiceQueryContinuation<T> 对象所包含的 URI 在执行时会返回查询结果中的下一页数据。