IAsyncEnumerable<T>.GetAsyncEnumerator(CancellationToken) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an enumerator that iterates asynchronously through the collection.
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)
- cancellationToken
- CancellationToken
A CancellationToken that may be used to cancel the asynchronous iteration.
An enumerator that can be used to iterate asynchronously through the collection.
Tuote | Versiot |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.0 (package-provided), 2.1 |
Tuotteen .NET palaute
.NET on avoin lähdekoodi projekti. Anna palautetta valitsemalla linkki: