你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StreamingResponse<T>.IAsyncEnumerable<T>.GetAsyncEnumerator Method
Definition
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.
System.Collections.Generic.IAsyncEnumerator<T> IAsyncEnumerable<T>.GetAsyncEnumerator (System.Threading.CancellationToken cancellationToken);
abstract member System.Collections.Generic.IAsyncEnumerable<T>.GetAsyncEnumerator : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerator<'T>
override this.System.Collections.Generic.IAsyncEnumerable<T>.GetAsyncEnumerator : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerator<'T>
Function GetAsyncEnumerator (cancellationToken As CancellationToken) As IAsyncEnumerator(Of T) Implements IAsyncEnumerable(Of T).GetAsyncEnumerator
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.