Dela via


IAsyncQueryExecutor.ToArrayAsync<T>(IQueryable<T>) Method

Definition

Asynchronously materializes the IQueryable<T> as an array, if supported.

public System.Threading.Tasks.Task<T[]> ToArrayAsync<T> (System.Linq.IQueryable<T> queryable);
abstract member ToArrayAsync : System.Linq.IQueryable<'T> -> System.Threading.Tasks.Task<'T[]>
Public Function ToArrayAsync(Of T) (queryable As IQueryable(Of T)) As Task(Of T())

Type Parameters

T

The data type.

Parameters

queryable
IQueryable<T>

An IQueryable<T> instance.

Returns

Task<T[]>

The items in the queryable.

Applies to