Click or drag to resize
OSIsoft, LLC

AFAttributeDefaultUOM Property

This property defines the default unit of measure (UOM) for the attribute's value.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.8.440
Syntax
public UOM DefaultUOM { get; set; }

Property Value

Type: UOM
The default UOM for the attribute's value.

Implements

IAFAttributeDefaultUOM
Remarks

The default UOM defines the units of (a) the value returned from a call to the GetValue Overload methods and (b) the value passed to the SetValue Overload methods if no UOM is specified for these method calls. If a different UOM is needed, then you can specify it in the call to these methods to override the default. The AFDataReference.UOM property is configured to be the actual UOM of the value in the external data source.

If this attribute was created from an AFAttributeTemplate, then the value of this property is defined by the template and cannot be changed. In this case, changing the AFAttributeTemplate.DefaultUOM property also changes the value of this property. If the attribute was NOT created from a template, then this property can be modified. Modifying this property will not convert the associated value, or any previous values already saved. If the current Type of this attribute is not a numeric type or array of numeric types, then it will be changed to a System.Double.

Version Information

AFSDK

Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5, 2.4
See Also
Enabling Operational Intelligence