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

AF SDK Reference

AFValue Constructor (AFAttribute, Object, AFTime)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFValue Constructor (AFAttribute, Object, AFTime)
This is the constructor for an AFValue object which specifies the Attribute, 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.1.1.1182

Syntax

public AFValue(
	AFAttribute attribute,
	Object newValue,
	AFTime timestamp
)
Public Sub New ( 
	attribute As AFAttribute,
	newValue As Object,
	timestamp As AFTime
)

Dim attribute As AFAttribute
Dim newValue As Object
Dim timestamp As AFTime

Dim instance As New AFValue(attribute, 
	newValue, timestamp)
public:
AFValue(
	AFAttribute^ attribute, 
	Object^ newValue, 
	AFTime timestamp
)
new : 
        attribute : AFAttribute * 
        newValue : Object * 
        timestamp : AFTime -> AFValue

Parameters

attribute
Type: OSIsoft.AF.AssetAFAttribute
The AFAttribute to be associated with the new value.
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

This constructor is useful for creating an AFValue to be used with the UpdateValues Overload method. The AFValue is associated with the specified Attribute. 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 .

Version Information

AFSDK


See Also

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