AFInputCountData Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Constructs AFInputCountData with counts and the time context.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFInputCountData( int countBefore, int countAfter, string timeContext = null )
Public Sub New ( countBefore As Integer, countAfter As Integer, Optional timeContext As String = Nothing ) Dim countBefore As Integer Dim countAfter As Integer Dim timeContext As String Dim instance As New AFInputCountData(countBefore, countAfter, timeContext)
public: AFInputCountData( int countBefore, int countAfter, String^ timeContext = nullptr )
new : countBefore : int * countAfter : int * ?timeContext : string (* Defaults: let _timeContext = defaultArg timeContext null *) -> AFInputCountData
Parameters
- countBefore
- Type: SystemInt32
Count before TimeContext. - countAfter
- Type: SystemInt32
Count after TimeContext. - timeContext (Optional)
- Type: SystemString
The time context for the count. If null or empty, the trigger time is assumed and will be replaced with "*".