New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents a result returned by an aggregate function.

Definition

Namespace:Telerik.Web.Data

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class AggregateResult : INotifyPropertyChanged

Inheritance: objectAggregateResult

Implements: INotifyPropertyChanged

Inherited Members object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

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.

Properties

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.

Gets or sets the value of the result.

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

The value of the result.

Methods

Called when a property has changed.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Name of the property.

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

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged