IDbAsyncEnumerator 接口

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

IEnumerator 接口的异步版本,它允许异步检索元素。 此接口用于与实体框架查询交互且不应由自定义类来实现。

命名空间:  System.Data.Entity.Infrastructure
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Interface IDbAsyncEnumerator _
    Inherits IDisposable
用法
Dim instance As IDbAsyncEnumerator
public interface IDbAsyncEnumerator : IDisposable
public interface class IDbAsyncEnumerator : IDisposable
type IDbAsyncEnumerator =  
    interface 
        interface IDisposable 
    end
public interface IDbAsyncEnumerator extends IDisposable

IDbAsyncEnumerator 类型公开以下成员。

属性

  名称 描述
公共属性 Current 获取迭代中的当前元素。

顶部

方法

  名称 描述
公共方法 Dispose (继承自 IDisposable。)
公共方法 MoveNextAsync 将枚举器前移到序列中的下一个元素,异步返回结果。

顶部

请参阅

参考

System.Data.Entity.Infrastructure 命名空间