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

AF SDK Reference

AFValues Constructor (Object[], DateTime[], AFValueStatus[], UOM[])

AFValues Constructor (Object[], DateTime[], AFValueStatus[], UOM[])

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFValues Constructor (Object[], DateTime[], AFValueStatus[], UOM[])
This constructor will create a new AFValues list from the specified values, timestamps, statuses, and with each UOM specified.

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

Syntax

public AFValues(
	Object[] values,
	DateTime[] timestamps,
	AFValueStatus[] statuses,
	UOM[] uoms
)
Public Sub New ( 
	values As Object(),
	timestamps As DateTime(),
	statuses As AFValueStatus(),
	uoms As UOM()
)

Dim values As Object()
Dim timestamps As DateTime()
Dim statuses As AFValueStatus()
Dim uoms As UOM()

Dim instance As New AFValues(values, 
	timestamps, statuses, uoms)
public:
AFValues(
	array<Object^>^ values, 
	array<DateTime>^ timestamps, 
	array<AFValueStatus>^ statuses, 
	array<UOM^>^ uoms
)
new : 
        values : Object[] * 
        timestamps : DateTime[] * 
        statuses : AFValueStatus[] * 
        uoms : UOM[] -> AFValues

Parameters

values
Type: SystemObject
Array of values.
timestamps
Type: SystemDateTime
Array of timestamps which correspond to the values.
statuses
Type: OSIsoft.AF.AssetAFValueStatus
Array of value status, which correspond to the values.
uoms
Type: OSIsoft.AF.UnitsOfMeasureUOM
The UOMs which all values are represented in.

Remarks

This constructor will perform more efficiently than individually adding values to the collection. All arrays should be of the same dimension.

Version Information

AFSDK


See Also

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