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

AF SDK Reference

AFAttributeTrait.GetDefaultUOM Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeTrait.GetDefaultUOM Method
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: UOM
Returns 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.

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, 2.9, 2.8.5

See Also

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