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

Represents a function that returns the first item from a set of items.

Definition

Constructors

Initializes a new instance of the FirstFunction class.

C#
public FirstFunction()

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 First 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)