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

Holds a value presentation of an aggregate function accumulated during pivot grouping.

Definition

Namespace:Telerik.Web.UI.PivotGrid.Core

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class AggregateValue

Inheritance: objectAggregateValue

Derived Classes: DoubleAggregateValue

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

Constructors

C#
protected AggregateValue()

Fields

Gets an AggregateValue representing error.

C#
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "Error is immutable.")]
public static readonly AggregateValue ErrorAggregateValue

Methods

Add the value to the results in the current AggregateValue instance.

C#
protected abstract void AccumulateOverride(object value)
Parameters:valueobject

The value to accumulate.

Gets a presentation friendly value of the results in the current AggregateValue.

C#
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Design choice.")]
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Design choice.")]
public object GetValue()
Returns:

object

Returns an object containing a formatted value or error object.

Gets a presentation friendly value of the results in the current AggregateValue instance to be returned in GetValue(). If an error occurred during calculations the GetValue() will not call GetValueOverride() but return the error instead.

C#
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Design choice.")]
protected abstract object GetValueOverride()
Returns:

object

A result object.

Merge the results of an AggregateValue with the results in the current AggregateValue instance.

C#
protected abstract void MergeOverride(AggregateValue childAggregate)
Parameters:childAggregateAggregateValue

The AggregateValue to merge.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()

Extension Methods