Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFAggregateResultCollection Class

  • Last UpdatedNov 18, 2025
  • 4 minute read
AFAggregateResultCollection Class
The AFAggregateResultCollection holds a set of multiple aggregates results.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.Data.AggregateAFAggregateResultCollection

Namespace:  OSIsoft.AF.Data.Aggregate
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public sealed class AFAggregateResultCollection : IReadOnlyList<AFAggregateResult>, 
	IReadOnlyCollection<AFAggregateResult>, IEnumerable<AFAggregateResult>, IEnumerable
Public NotInheritable Class AFAggregateResultCollection
	Implements IReadOnlyList(Of AFAggregateResult), IReadOnlyCollection(Of AFAggregateResult), 
	IEnumerable(Of AFAggregateResult), IEnumerable

Dim instance As AFAggregateResultCollection
public ref class AFAggregateResultCollection sealed : IReadOnlyList<AFAggregateResult^>, 
	IReadOnlyCollection<AFAggregateResult^>, IEnumerable<AFAggregateResult^>, IEnumerable
[<SealedAttribute>]
type AFAggregateResultCollection =  
    class
        interface IReadOnlyList<AFAggregateResult>
        interface IReadOnlyCollection<AFAggregateResult>
        interface IEnumerable<AFAggregateResult>
        interface IEnumerable
    end

The AFAggregateResultCollection type exposes the following members.

Properties

  NameDescription
Public property
Error
The error that caused the entire aggregation to fail or if the entire aggregation did not fail.
Public property
Item
Gets the result by index. The index positions will correspond to the order in which the requests were made.
Public property
TotalCount
The total count of items that were aggregated.

Methods

  NameDescription
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetEnumerator
Gets an enumerator to obtain all results in the order they were requested.
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetResult(AFSummaryRequest)
Gets the summary result for the specified request.
Public method
GetResultTBin(AFBinningRequestTBin)
Gets the binned result for the specified request.
Public method
GetResultTGroup(AFGroupingRequestTGroup)
Gets the grouped result for the specified request.
Public method
GetResultT1, T2(AFCompoundPartitioningRequestT1, T2)
Gets the result for a compound aggregate.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Extension Methods

  NameDescription
Public Extension MethodCode example
ChunkedByAFAggregateResult
This extension method breaks up search results into chunks to make it easier to page through and process IEnumerableT collections in chunks.
(Defined by AFSDKExtension.)

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9

See Also

TitleResults for “How to create a CRG?”Also Available in