ObjectResult クラス

定義

このクラスは、IEnumerable と IDisposable を実装します。 このクラスのインスタンスは ObjectQuery.Execute メソッドから返されます。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public abstract class ObjectResult : IDisposable, System.Collections.IEnumerable, System.ComponentModel.IListSource, System.Data.Entity.Infrastructure.IDbAsyncEnumerable
type ObjectResult = class
    interface IEnumerable
    interface IDisposable
    interface IListSource
    interface IDbAsyncEnumerable
Public MustInherit Class ObjectResult
Implements IDbAsyncEnumerable, IDisposable, IEnumerable, IListSource
継承
ObjectResult
派生
属性
実装

コンストラクター

ObjectResult()

このコンストラクターは、モックまたは偽の動作でメンバーをオーバーライドするテスト ダブルを作成する場合にのみ使用することを目的としています。 このコンストラクターを他の目的で使用すると、 をスローするなど、予期しない動作が発生する NullReferenceException可能性があります。

プロパティ

ElementType

派生クラスでオーバーライドされると、ジェネリック ObjectResult<T> の型を取得します。

メソッド

Dispose()

リソースの解放またはリセットに関連付けられているタスクを実行します。

Dispose(Boolean)

オブジェクトの結果で使用されるリソースを解放します。

GetNextResult<TElement>()

ストアド プロシージャの次の結果セットを取得します。

明示的なインターフェイスの実装

IDbAsyncEnumerable.GetAsyncEnumerator()

シーケンスを非同期的に列挙するために使用できる列挙子を取得します。

IEnumerable.GetEnumerator()

クエリ結果を反復処理する列挙子を返します。

IListSource.ContainsListCollection

IListSource.ContainsListCollection 実装。 常に false を返します。

IListSource.GetList()

結果を、データ バインディングに使用できる形式で返します。

適用対象