DataServiceQuery<TElement>.EndExecute 方法
結束對資料服務的非同步查詢要求。
命名空間: System.Data.Services.Client
組件: Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)
語法
'宣告
Public Function EndExecute ( _
asyncResult As IAsyncResult _
) As IEnumerable(Of TElement)
'用途
Dim instance As DataServiceQuery
Dim asyncResult As IAsyncResult
Dim returnValue As IEnumerable(Of TElement)
returnValue = instance.EndExecute(asyncResult)
public IEnumerable<TElement> EndExecute(
IAsyncResult asyncResult
)
public:
IEnumerable<TElement>^ EndExecute(
IAsyncResult^ asyncResult
)
member EndExecute :
asyncResult:IAsyncResult -> IEnumerable<'TElement>
public function EndExecute(
asyncResult : IAsyncResult
) : IEnumerable<TElement>
參數
- asyncResult
型別:System.IAsyncResult
暫止的非同步查詢要求。
傳回值
型別:System.Collections.Generic.IEnumerable<TElement>
傳回包含查詢作業結果的 IEnumerable<T>。
例外狀況
例外狀況 | 條件 |
---|---|
DataServiceQueryException | 當資料服務傳回「HTTP 404:找不到資源」錯誤時。 |