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

AF SDK Reference

AFGroupingRequest(TGroup).GroupBy Method (String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFGroupingRequest(TGroup).GroupBy Method (String)
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<Object, TGroup> GroupBy(
	string field
)
Public Function GroupBy ( 
	field As String
) As AFCompoundPartitioningRequest(Of Object, TGroup)

Dim instance As AFGroupingRequest
Dim field As String
Dim returnValue As AFCompoundPartitioningRequest(Of Object, TGroup)

returnValue = instance.GroupBy(field)
public:
AFCompoundPartitioningRequest<Object^, TGroup>^ GroupBy(
	String^ field
)
member GroupBy : 
        field : string -> AFCompoundPartitioningRequest<Object, 'TGroup> 

Parameters

field
Type: SystemString
The field to group by.

Return Value

Type: AFCompoundPartitioningRequestObject, TGroup
An aggregate request grouped by a compound key of two fields.

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