DataServiceQuery<TElement>.Execute 方法

定義

執行查詢並傳回結果做為實作 IEnumerable 的集合。

public:
 System::Collections::Generic::IEnumerable<TElement> ^ Execute();
public System.Collections.Generic.IEnumerable<TElement> Execute ();
override this.Execute : unit -> seq<'Element>
Public Function Execute () As IEnumerable(Of TElement)

傳回

IEnumerable<TElement>

IEnumerable<T>,其中 T 表示查詢結果型別。

例外狀況

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

備註

逐一查看傳回的集合時,如果在無法還原串行化的輸入數據流中遇到物件, T 則會 NotSupportedException 擲回 。

適用於