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>

参数

返回值

类型:System.Collections.Generic.IEnumerable<TElement>
返回包含查询操作结果的 IEnumerable<T>

异常

异常 条件
DataServiceQueryException

当数据服务返回“HTTP 404: 未找到资源”错误时。

请参阅

参考

DataServiceQuery<TElement> 类

System.Data.Services.Client 命名空间