DocumentQueryable.SumAsync Method

Definition

Overloads

SumAsync(IQueryable<Decimal>, CancellationToken)

Computes the sum of a sequence of Decimal values.

SumAsync(IQueryable<Double>, CancellationToken)

Computes the sum of a sequence of Double values.

SumAsync(IQueryable<Int32>, CancellationToken)

Computes the sum of a sequence of Int32 values.

SumAsync(IQueryable<Int64>, CancellationToken)

Computes the sum of a sequence of Int64 values.

SumAsync(IQueryable<Nullable<Decimal>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

SumAsync(IQueryable<Nullable<Double>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

SumAsync(IQueryable<Nullable<Int32>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

SumAsync(IQueryable<Nullable<Int64>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

SumAsync(IQueryable<Nullable<Single>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

SumAsync(IQueryable<Single>, CancellationToken)

Computes the sum of a sequence of Single values.

SumAsync(IQueryable<Decimal>, CancellationToken)

Computes the sum of a sequence of Decimal values.

public static System.Threading.Tasks.Task<decimal> SumAsync (this System.Linq.IQueryable<decimal> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Decimal>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Double>, CancellationToken)

Computes the sum of a sequence of Double values.

public static System.Threading.Tasks.Task<double> SumAsync (this System.Linq.IQueryable<double> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Double>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Int32>, CancellationToken)

Computes the sum of a sequence of Int32 values.

public static System.Threading.Tasks.Task<int> SumAsync (this System.Linq.IQueryable<int> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Int32>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Int64>, CancellationToken)

Computes the sum of a sequence of Int64 values.

public static System.Threading.Tasks.Task<long> SumAsync (this System.Linq.IQueryable<long> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Int64>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Nullable<Decimal>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

public static System.Threading.Tasks.Task<Nullable<decimal>> SumAsync (this System.Linq.IQueryable<Nullable<decimal>> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Nullable<Decimal>>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Nullable<Double>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

public static System.Threading.Tasks.Task<Nullable<double>> SumAsync (this System.Linq.IQueryable<Nullable<double>> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Nullable<Double>>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Nullable<Int32>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

public static System.Threading.Tasks.Task<Nullable<int>> SumAsync (this System.Linq.IQueryable<Nullable<int>> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Nullable<Int32>>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Nullable<Int64>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

public static System.Threading.Tasks.Task<Nullable<long>> SumAsync (this System.Linq.IQueryable<Nullable<long>> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Nullable<Int64>>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Nullable<Single>>, CancellationToken)

Computes the sum of a sequence of Nullable<T> values.

public static System.Threading.Tasks.Task<Nullable<float>> SumAsync (this System.Linq.IQueryable<Nullable<float>> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Nullable<Single>>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.

SumAsync(IQueryable<Single>, CancellationToken)

Computes the sum of a sequence of Single values.

public static System.Threading.Tasks.Task<float> SumAsync (this System.Linq.IQueryable<float> source, System.Threading.CancellationToken cancellationToken = null);
Parameters
source
IQueryable<Single>

A sequence of values to calculate the average of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The average value in the sequence.