IAsyncEnumerable<T>.GetAsyncEnumerator(CancellationToken) Methode

Definitie

Retourneert een enumerator die asynchroon door de verzameling wordt herhaald.

public System.Collections.Generic.IAsyncEnumerator<out T> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsyncEnumerator : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerator<'T>
Public Function GetAsyncEnumerator (Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerator(Of Out T)

Parameters

cancellationToken
CancellationToken

Een CancellationToken die kan worden gebruikt om de asynchrone iteratie te annuleren.

Retouren

Een enumerator die kan worden gebruikt om asynchroon door de verzameling te herhalen.

Van toepassing op