AFGroupingRequest(TGroup).GroupBy(TPrimaryGroup) Method (String)
- 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<TPrimaryGroup, TGroup> GroupBy<TPrimaryGroup>( string field )
Public Function GroupBy(Of TPrimaryGroup) ( field As String ) As AFCompoundPartitioningRequest(Of TPrimaryGroup, TGroup) Dim instance As AFGroupingRequest Dim field As String Dim returnValue As AFCompoundPartitioningRequest(Of TPrimaryGroup, TGroup) returnValue = instance.GroupBy(field)
public: generic<typename TPrimaryGroup> AFCompoundPartitioningRequest<TPrimaryGroup, TGroup>^ GroupBy( String^ field )
member GroupBy : field : string -> AFCompoundPartitioningRequest<'TPrimaryGroup, 'TGroup>
Parameters
- field
- Type: SystemString
The field to group by.
Type Parameters
- TPrimaryGroup
- The type that values of the field should be converted to and grouped by.
Return Value
Type: AFCompoundPartitioningRequestTPrimaryGroup, TGroupAn aggregate request grouped by a compound key of two fields.