IAsyncQueryExecutor.CountAsync<T>(IQueryable<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.
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
.