IDbAsyncEnumerable.GetAsyncEnumerator 方法

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

获取一个枚举器,它可用于异步枚举序列。

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

语法

声明
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Function GetAsyncEnumerator As IDbAsyncEnumerator
用法
Dim instance As IDbAsyncEnumerable 
Dim returnValue As IDbAsyncEnumerator 

returnValue = instance.GetAsyncEnumerator()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
IDbAsyncEnumerator GetAsyncEnumerator()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
IDbAsyncEnumerator^ GetAsyncEnumerator()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
abstract GetAsyncEnumerator : unit -> IDbAsyncEnumerator
function GetAsyncEnumerator() : IDbAsyncEnumerator

返回值

类型:System.Data.Entity.Infrastructure.IDbAsyncEnumerator
用于对序列异步枚举的枚举器。

请参阅

参考

IDbAsyncEnumerable 接口

System.Data.Entity.Infrastructure 命名空间