Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IAsyncEnumerable<T>.GetAsyncEnumerator(CancellationToken) Method

Definition

Namespace:
System.Collections.Generic
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
Microsoft.Bcl.AsyncInterfaces.dll
Assembly:
netstandard.dll
Package:
Microsoft.Bcl.AsyncInterfaces v11.0.0-preview.5.26302.115
Source:
IAsyncEnumerable.cs
Source:
IAsyncEnumerable.cs
Source:
TimeZoneInfo.TransitionTime.cs

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)

Parameters

cancellationToken
CancellationToken

A CancellationToken that may be used to cancel the asynchronous iteration.

Returns

An enumerator that can be used to iterate asynchronously through the collection.

Applies to


Feedback

Was this page helpful?