UOMGroups.Add Method (String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- 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.1.1.1182
Syntax
public UOMGroup Add( string name )
Public Function Add ( name As String ) As UOMGroup Dim instance As UOMGroups Dim name As String Dim returnValue As UOMGroup returnValue = instance.Add(name)
public: UOMGroup^ Add( String^ name )
member Add : name : string -> UOMGroup
Parameters
- name
- Type: SystemString
The name for the new object. The name must be unique within the collection. If the name ends with an asterisk (*), then a unique name will be generated based on the supplied name. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Return Value
Type: UOMGroupReturns the newly created object that was added.
Remarks
Use the UOMBaseClasses.Add
method to add base UOM dimensions for a derived UOM class and their powers.