共用方式為


ObjectResult<T>.IDbAsyncEnumerable<T>.GetAsyncEnumerator 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

非同步取得可逐一查看 ObjectResult<T> 的列舉值。

命名空間:  System.Data.Entity.Core.Objects
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetAsyncEnumerator As IDbAsyncEnumerator(Of T)
    Implements IDbAsyncEnumerable(Of T).GetAsyncEnumerator
'用途
Dim instance As ObjectResult 
Dim returnValue As IDbAsyncEnumerator(Of T)

returnValue = CType(instance, IDbAsyncEnumerable(Of T)).GetAsyncEnumerator()
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
IDbAsyncEnumerator<T> IDbAsyncEnumerable<T>.GetAsyncEnumerator()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual IDbAsyncEnumerator<T>^ GetAsyncEnumerator() sealed = IDbAsyncEnumerable<T>::GetAsyncEnumerator
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract GetAsyncEnumerator : unit -> IDbAsyncEnumerator<'T> 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override GetAsyncEnumerator : unit -> IDbAsyncEnumerator<'T> 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

傳回值

類型:System.Data.Entity.Infrastructure.IDbAsyncEnumerator<T>
可逐一查看 ObjectResult<T> 的列舉值。

Implements

IDbAsyncEnumerable<T>.GetAsyncEnumerator()

請參閱

參考

ObjectResult<T> 類別

System.Data.Entity.Core.Objects 命名空間