语言

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()

以数据绑定有用的格式返回结果。

适用于