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 がスローされます。

適用対象