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

Information for aggregates on the data.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

C#
public class AggregateResult

Inheritance: objectAggregateResult

Constructors

Initializes a new instance of the AggregateResult class.

C#
public AggregateResult(AggregateFunction function)
Parameters:functionAggregateFunction

AggregateFunction that generated the result.

Exceptions:

ArgumentNullException

function is null.

Initializes a new instance of the AggregateResult class.

C#
public AggregateResult(object value, AggregateFunction function)
Parameters:valueobject

The value of the result.

functionAggregateFunction

AggregateFunction that generated the result.

Initializes a new instance of the AggregateResult class.

C#
public AggregateResult(object value, int count, AggregateFunction function)
Parameters:valueobject

The value of the result.

countint

The number of arguments used for the calculation of the result.

functionAggregateFunction

Function that generated the result.

Exceptions:

ArgumentNullException

function is null.

Methods

Returns a formatted string based on the passed format and the current result value.

C#
public string Format(string format)
Parameters:formatstringReturns:

string

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()

Properties

The name of the aggregation method that is used.

C#
public string AggregateMethodName { get; }

Gets or sets the text which serves as a caption for the result in a user interface.

C#
public string Caption { get; }
Property Value:

The text which serves as a caption for the result in a user interface.

Gets the formatted value of the result.

C#
public object FormattedValue { get; }
Property Value:

The formatted value of the result.

Gets the name of the function.

C#
public string FunctionName { get; }
Property Value:

The name of the function.

Gets or sets the number of arguments used for the calulation of the result.

C#
public int ItemCount { get; set; }
Property Value:

The number of arguments used for the calulation of the result.

The name of the field over which aggregation is performed.

C#
public string Member { get; }

Gets or sets the value of the result.

C#
public object Value { get; }
Property Value:

The value of the result.