.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPQueryExtensions.CountAsync Method

Name Parameters Description
CountAsync<T>(IQueryable<T>, CancellationToken) static query, cancellationToken

Asynchronously counts the number of objects in a selection.

CountAsync<T>(IQueryable<T>, Expression<Func<T, Boolean>>, CancellationToken) static query, predicate, cancellationToken

Asynchronously counts the number of objects that meet specific requirements in a specified selection.