AFValues.Convert Method (UOM)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFValues Convert( UOM uom )
Public Function Convert ( uom As UOM ) As AFValues Dim instance As AFValues Dim uom As UOM Dim returnValue As AFValues returnValue = instance.Convert(uom)
public: AFValues^ Convert( UOM^ uom )
member Convert : uom : UOM -> AFValues
Parameters
- uom
- Type: OSIsoft.AF.UnitsOfMeasureUOM
The desired unit of measure for each AFValue in the new AFValues list. The UOM specified must be of the same UOMClass as the current UOM for each value in the list.
Return Value
Type: AFValuesReturns a new AFValues list with each AFValue in the specified UOM.
Remarks
If the UOM for a value is not set, then no conversion takes place but the UOM of the value is set to the value of the uom parameter.
If the Value is an Array, then each item in the array will be converted to the specified uom.