AFSummaryRequest Constructor (String, AFSummaryTypes, String)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Computes desired summaries on the specified field and weighted by the specified field.
Namespace: OSIsoft.AF.Data.Aggregate
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFSummaryRequest( string field, AFSummaryTypes summaryTypes, string weightField )
Public Sub New ( field As String, summaryTypes As AFSummaryTypes, weightField As String ) Dim field As String Dim summaryTypes As AFSummaryTypes Dim weightField As String Dim instance As New AFSummaryRequest(field, summaryTypes, weightField)
public: AFSummaryRequest( String^ field, AFSummaryTypes summaryTypes, String^ weightField )
new : field : string * summaryTypes : AFSummaryTypes * weightField : string -> AFSummaryRequest
Parameters
- field
- Type: SystemString
The field to summarize. - summaryTypes
- Type: OSIsoft.AF.DataAFSummaryTypes
The summaries to perform. - weightField
- Type: SystemString
The field to use to weight each item (e.g. "Duration" could be used to weight attribute summaries on an AFEventFrame.