AFSummaryRequest Constructor (String, AFSummaryTypes, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
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.