DataServiceQuery.Execute 方法

定义

执行对数据服务的查询。Executes the query against the data service.

public:
 System::Collections::IEnumerable ^ Execute();
public System.Collections.IEnumerable Execute ();
override this.Execute : unit -> System.Collections.IEnumerable
member this.Execute : unit -> System.Collections.IEnumerable
Public Function Execute () As IEnumerable

返回

IEnumerable

包含查询操作结果的 IEnumerable<T>An IEnumerable<T> that contains the results of the query operation.

例外

当数据服务返回“HTTP 404: 未找到资源”错误时。When the data service returns an HTTP 404: Resource Not Found error.

注解

用于执行给定数据服务查询的 Execute 方法。The Execute method is used to execute the given data service query.

Execute 方法用于生成发送到数据服务的 HTTP GET 请求。The Execute method generates an HTTP GET request that is set to the data service.

适用于