Asynchronously calculates a sum of objects' specific Int64 fields for a query.
public static Task<long> SumAsync(
this IQueryable<long> query,
CancellationToken cancellationToken = default(CancellationToken)
Public Shared Function SumAsync(
query As IQueryable(Of Long),
cancellationToken As CancellationToken = Nothing
) As Task(Of Long)
An XPQuery<T> that specifies a persistent object selection.
A CancellationToken object that delivers a cancellation notice to the running operation.
A Task that returns a sum of objects' specific Int64 fields for a query.