AFBinningRequest(TBin).GroupBy(TGroup) Method (String, Int32)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a compound grouping with this aggregate grouped by values of the specified field.
Namespace: OSIsoft.AF.Data.Aggregate
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFCompoundPartitioningRequest<TGroup, AFRange<TBin>> GroupBy<TGroup>( string field, int maximumGroups )
Public Function GroupBy(Of TGroup) ( field As String, maximumGroups As Integer ) As AFCompoundPartitioningRequest(Of TGroup, AFRange(Of TBin)) Dim instance As AFBinningRequest Dim field As String Dim maximumGroups As Integer Dim returnValue As AFCompoundPartitioningRequest(Of TGroup, AFRange(Of TBin)) returnValue = instance.GroupBy(field, maximumGroups)
public: generic<typename TGroup> AFCompoundPartitioningRequest<TGroup, AFRange<TBin>^>^ GroupBy( String^ field, int maximumGroups )
member GroupBy : field : string * maximumGroups : int -> AFCompoundPartitioningRequest<'TGroup, AFRange<'TBin>>
Parameters
- field
- Type: SystemString
The field to group by. - maximumGroups
- Type: SystemInt32
The maximum number of groups to permit.
Type Parameters
- TGroup
- The type that values of the field should be converted to and grouped by.
Return Value
Type: AFCompoundPartitioningRequestTGroup, AFRangeTBinAn aggregate request grouped by a compound key of two fields.