IAsyncEnumerator<T> IAsyncEnumerator<T> IAsyncEnumerator<T> IAsyncEnumerator<T> Interface

定義

支援泛型集合上的簡單非同步反覆項目。Supports a simple asynchronous iteration over a generic collection.

generic <typename T>
public interface class IAsyncEnumerator : IAsyncDisposable
public interface IAsyncEnumerator<out T> : IAsyncDisposable
type IAsyncEnumerator<'T> = interface
    interface IAsyncDisposable
Public Interface IAsyncEnumerator(Of Out T)
Implements IAsyncDisposable

類型參數

T

集合中的項目型別。The type of the elements in the collection.

實作

屬性

Current Current Current Current

取得集合中位於列舉值目前位置的元素。Gets the element in the collection at the current position of the enumerator.

方法

DisposeAsync() DisposeAsync() DisposeAsync() DisposeAsync()

非同步執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之由應用程式定義的工作。Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

(Inherited from IAsyncDisposable)
MoveNextAsync() MoveNextAsync() MoveNextAsync() MoveNextAsync()

以非同步方式讓列舉程式前進至集合的下個元素。Advances the enumerator asynchronously to the next element of the collection.

擴充方法

ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean) ConfigureAwait(IAsyncDisposable, Boolean)

設定如何執行從非同步可處置項目傳回的工作 await。Configures how awaits on the tasks returned from an async disposable are performed.

適用於