IAsyncEnumerator<T> Rozhraní

Definice

Podporuje jednoduchou asynchronní iteraci přes obecnou kolekci.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

Parametry typu

T

Typ elementů v kolekci.The type of the elements in the collection.

Tento parametr typu je kovariantní. To znamená, že můžete použít buď zadaný typ, nebo libovolný typ, který je více odvozený. Další informace o kovarianci a kontravarianci najdete v tématu popisujícím kovarianci a kontravarianci u parametrického polymorfismu.
Implementuje

Vlastnosti

Current

Získá prvek v kolekci na aktuální pozici čítače výčtu.Gets the element in the collection at the current position of the enumerator.

Metody

DisposeAsync()

Provádí úkoly definované aplikací, které jsou spojeny s uvolněním, uvolněním nebo obnovením nespravovaných prostředků asynchronně.Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

(Zděděno od IAsyncDisposable)
MoveNextAsync()

Vystoupí enumerátor asynchronně k dalšímu prvku kolekce.Advances the enumerator asynchronously to the next element of the collection.

Metody rozšíření

ConfigureAwait(IAsyncDisposable, Boolean)

Konfiguruje, jak se provádí funkce await u úloh vrácených z asynchronního použití.Configures how awaits on the tasks returned from an async disposable are performed.

Platí pro