非同步傳送要求給資料服務,在分頁式查詢結果中擷取下一頁資料。
命名空間: 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,在執行時會在查詢結果中傳回下一頁資料。