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

AF SDK Reference

AFValue Constructor (Object, AFTime, UOM)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFValue Constructor (Object, AFTime, UOM)
This is the constructor for an AFValue object which specifies the value, timestamp, and unit of measure and uses defaults for all the other properties.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFValue(
	Object newValue,
	AFTime timestamp,
	UOM uom
)
Public Sub New ( 
	newValue As Object,
	timestamp As AFTime,
	uom As UOM
)

Dim newValue As Object
Dim timestamp As AFTime
Dim uom As UOM

Dim instance As New AFValue(newValue, 
	timestamp, uom)
public:
AFValue(
	Object^ newValue, 
	AFTime timestamp, 
	UOM^ uom
)
new : 
        newValue : Object * 
        timestamp : AFTime * 
        uom : UOM -> 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.
uom
Type: OSIsoft.AF.UnitsOfMeasureUOM
The UOM of the specified value.

Exceptions

ExceptionCondition
InvalidCastException This exception is thrown if the type of newValue does not support specifying a UOM.

Remarks

The default value for the Status property sets the IsGood flag and no other status bits are set.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in