共用方式為


DataServiceQuery<TElement>.BeginExecute 方法

啟動非同步網路作業,執行這個物件執行個體所表示的查詢。

命名空間:  System.Data.Services.Client
組件:  Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)

語法

'宣告
Public Function BeginExecute ( _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'用途
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

參數

  • state
    型別:System.Object
    使用者定義的物件,用來在啟動作業與 callback 所定義的回呼 (Callback) 之間傳輸狀態。

傳回值

型別:System.IAsyncResult
IAsyncResult ,表示非同步作業的狀態。

請參閱

參考

DataServiceQuery<TElement> 類別

System.Data.Services.Client 命名空間