Share via


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

Definition

Asynchronously counts the items in the IQueryable<T>, if supported.

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

Type Parameters

T

The data type.

Parameters

queryable
IQueryable<T>

An IQueryable<T> instance.

Returns

The number of items in queryable.

Applies to