Language

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
派生
属性
実装

コンストラクター

Name 説明
ObjectResult()

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

プロパティ

Name 説明
ElementType

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

メソッド

Name 説明
Dispose()

リソースの解放、解放、またはリセットに関連するタスクを実行します。

Dispose(Boolean)

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

GetNextResult<TElement>()

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

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

Name 説明
IDbAsyncEnumerable.GetAsyncEnumerator()

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

IEnumerable.GetEnumerator()

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

IListSource.ContainsListCollection

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

IListSource.GetList()

データ バインディングに役立つ形式で結果を返します。

適用対象