語言

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
衍生
屬性
實作

建構函式

名稱 Description
ObjectResult()

此建構函式僅適用于建立測試雙精度浮點數,以模擬或假行為覆寫成員。 針對其他用途使用此建構函式可能會導致非預期的行為,包括但不限於擲回 NullReferenceException 。

屬性

名稱 Description
ElementType

在衍生類別中覆寫時,取得泛型 的型別 ObjectResult<T> 。

方法

名稱 Description
Dispose()

執行與釋出、釋放或重設資源相關聯的工作。

Dispose(Boolean)

釋放物件結果所使用的資源。

GetNextResult<TElement>()

取得預存程序的下一個結果集。

明確介面實作

名稱 Description
IDbAsyncEnumerable.GetAsyncEnumerator()

取得可用來以非同步方式列舉序列的列舉值。

IEnumerable.GetEnumerator()

傳回逐一查看查詢結果的列舉值。

IListSource.ContainsListCollection

IListSource.ContainsListCollection 實作。 一律傳回 false。

IListSource.GetList()

以適用於資料繫結 (Data Binding) 的格式傳回結果。

適用於