AFAttributeTrait.GetDefaultUOM Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the default UOM that is specified for the AFAttribute.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public UOM GetDefaultUOM( PISystem system = null )
Public Function GetDefaultUOM ( Optional system As PISystem = Nothing ) As UOM Dim instance As AFAttributeTrait Dim system As PISystem Dim returnValue As UOM returnValue = instance.GetDefaultUOM(system)
public: UOM^ GetDefaultUOM( PISystem^ system = nullptr )
member GetDefaultUOM : ?system : PISystem (* Defaults: let _system = defaultArg system null *) -> UOM
Parameters
- system (Optional)
- Type: OSIsoft.AFPISystem
The PISystem that is used to find the UOM to be returned. If , then the DefaultPISystem will be used.
Return Value
Type: UOMReturns the default UOM for AFAttribute. Returns if no default UOM is defined.
Remarks
If a default UOM is defined, then the DefaultUOM
for the AFAttribute must be specified and belong to the same
UOMClass as defined by this trait.