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

AF SDK Reference

AFSummaryRequest.GroupBy(TGroup) Method (String, Int32)

AFSummaryRequest.GroupBy(TGroup) Method (String, Int32)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSummaryRequest.GroupBy(TGroup) Method (String, Int32)
Creates a grouping with this summary 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 AFGroupingRequest<TGroup> GroupBy<TGroup>(
	string field,
	int maximumGroups
)
Public Function GroupBy(Of TGroup) ( 
	field As String,
	maximumGroups As Integer
) As AFGroupingRequest(Of TGroup)

Dim instance As AFSummaryRequest
Dim field As String
Dim maximumGroups As Integer
Dim returnValue As AFGroupingRequest(Of TGroup)

returnValue = instance.GroupBy(field, 
	maximumGroups)
public:
generic<typename TGroup>
AFGroupingRequest<TGroup>^ GroupBy(
	String^ field, 
	int maximumGroups
)
member GroupBy : 
        field : string * 
        maximumGroups : int -> AFGroupingRequest<'TGroup> 

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: AFGroupingRequestTGroup
An summary request grouped by discrete values of the specified field.

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

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in