PagedEnumerableExtensions.ToListAsync<T> 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.
Creates a List<T> from an IPagedEnumerable<T>.
public static System.Threading.Tasks.Task<System.Collections.Generic.List<T>> ToListAsync<T> (this Microsoft.Azure.Batch.IPagedEnumerable<T> source, System.Threading.CancellationToken cancellationToken = default);
static member ToListAsync : Microsoft.Azure.Batch.IPagedEnumerable<'T> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<'T>>
<Extension()>
Public Function ToListAsync(Of T) (source As IPagedEnumerable(Of T), Optional cancellationToken As CancellationToken = Nothing) As Task(Of List(Of T))
Type Parameters
- T
Parameters
- source
- IPagedEnumerable<T>
The IPagedEnumerable<T> to create a list from.
- cancellationToken
- CancellationToken
A CancellationToken for controlling the lifetime of the asynchronous operation.
Returns
A Task<TResult> that represents the asynchronous operation. The result of the task is a List<T> containing all elements of the source sequence.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET