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

AF SDK Reference

AFValues.Convert Method (UOM)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFValues.Convert Method (UOM)
Returns a new AFValues list with each AFValue in the specified UOM.

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: AFValues
Returns 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5

See Also

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