New to Telerik UI for WPFStart a free 30-day trial

Represents a function that returns the number of items in a set of items, including nested sets.

Definition

Constructors

Initializes a new instance of the CountFunction class.

C#
public CountFunction()

Properties

Gets the name of the aggregate method on the ExtensionMethodsType that will be used for aggregation.

C#
protected override string AggregateMethodName { get; }
Property Value:

The name of the aggregate method that will be used.

Overrides: EnumerableAggregateFunctionBase.AggregateMethodName

Remarks:

Gets the the Count method name.

Methods

Merges the specified item into the aggregate result according to the specified action.

C#
public override object Merge(object item, AggregateResultMergeAction mergeAction, AggregateResult originalAggregateResult, QueryableCollectionViewGroup group)
Parameters:itemobject

The item.

mergeActionAggregateResultMergeAction

The action.

originalAggregateResultAggregateResult

The original aggregate result.

groupQueryableCollectionViewGroup

The group which the item is being added to or removed from.

Returns:

object

The new value of the aggregate result.

Overrides: AggregateFunction.Merge(object, AggregateResultMergeAction, AggregateResult, QueryableCollectionViewGroup)