共用方式為


DataServiceQuery.EndExecute 方法

呼叫以完成執行資料服務查詢的非同步作業。

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

語法

'宣告
Public Function EndExecute ( _
    asyncResult As IAsyncResult _
) As IEnumerable
'用途
Dim instance As DataServiceQuery
Dim asyncResult As IAsyncResult
Dim returnValue As IEnumerable

returnValue = instance.EndExecute(asyncResult)
public IEnumerable EndExecute(
    IAsyncResult asyncResult
)
public:
IEnumerable^ EndExecute(
    IAsyncResult^ asyncResult
)
member EndExecute : 
        asyncResult:IAsyncResult -> IEnumerable 
public function EndExecute(
    asyncResult : IAsyncResult
) : IEnumerable

參數

傳回值

型別:System.Collections.IEnumerable
包含查詢作業結果的 IEnumerable<T>

例外狀況

例外狀況 條件
DataServiceQueryException

當資料服務傳回「HTTP 404:找不到資源」錯誤時。

請參閱

參考

DataServiceQuery 類別

System.Data.Services.Client 命名空間