AFValues Constructor (Object[], DateTime[], AFValueStatus[], UOM)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.