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

XPQueryExtensions.LongCountAsync Method

Name Parameters Description
LongCountAsync<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.
LongCountAsync<T>(IQueryable<T>, CancellationToken) static query, cancellationToken Asynchronously counts the number of objects in a selection.