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, and statuses all with the same UOM.

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 uom
)
Public Sub New ( 
	values As Object(),
	timestamps As DateTime(),
	statuses As AFValueStatus(),
	uom As UOM
)

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

Dim instance As New AFValues(values, 
	timestamps, statuses, uom)
public:
AFValues(
	array<Object^>^ values, 
	array<DateTime>^ timestamps, 
	array<AFValueStatus>^ statuses, 
	UOM^ uom
)
new : 
        values : Object[] * 
        timestamps : DateTime[] * 
        statuses : AFValueStatus[] * 
        uom : 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.
uom
Type: OSIsoft.AF.UnitsOfMeasureUOM
The single UOM 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