DataServiceQuery.Execute 方法

定義

對資料服務執行查詢。

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<T>

例外狀況

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

備註

Execute 方法用於執行給定的資料服務查詢。

Execute 方法會產生設定為資料服務的 HTTP GET 要求。

適用於