UOMBaseClasses.Add Method (UOMClass, Int16)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
The Add method creates a new object and adds it to the collection.
Namespace: OSIsoft.AF.UnitsOfMeasure
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public UOMBaseClass Add( UOMClass baseClass, short power )
Public Function Add ( baseClass As UOMClass, power As Short ) As UOMBaseClass Dim instance As UOMBaseClasses Dim baseClass As UOMClass Dim power As Short Dim returnValue As UOMBaseClass returnValue = instance.Add(baseClass, power)
public: UOMBaseClass^ Add( UOMClass^ baseClass, short power )
member Add : baseClass : UOMClass * power : int16 -> UOMBaseClass
Parameters
- baseClass
- Type: OSIsoft.AF.UnitsOfMeasureUOMClass
The base UOMClass for the current UOMClass. - power
- Type: SystemInt16
The respective power of the baseClass.
Return Value
Type: UOMBaseClassReturns the newly created object that was added.
Remarks
This method creates the UOMBaseClass with the specified power.