AFValue Constructor (Object, AFTime)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
This is the constructor for an AFValue object which specifies
the value and timestamp and uses defaults for all the other properties.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFValue( Object newValue, AFTime timestamp )
Public Sub New ( newValue As Object, timestamp As AFTime ) Dim newValue As Object Dim timestamp As AFTime Dim instance As New AFValue(newValue, timestamp)
public: AFValue( Object^ newValue, AFTime timestamp )
new : newValue : Object * timestamp : AFTime -> AFValue
Parameters
- newValue
- Type: SystemObject
The new value to be assigned to the Value property. - timestamp
- Type: OSIsoft.AF.TimeAFTime
The timestamp associated with the new value.
Remarks
The default value for the Status property sets the IsGood
flag and no other status bits are set.
The default value for the UOM property is .