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

AF SDK Reference

AFAttribute.GetValue Method (Object, Object, UOM)

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFAttribute.GetValue Method (Object, Object, UOM)

Note: This API is now obsolete.

This method gets the value for an attribute based upon the data reference configuration and the specified AFCase context in the specified units-of-measure.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[BrowsableAttribute(false)]
[ObsoleteAttribute("This method has been replaced by GetValue(AFCase,UOM), GetValue(AFTime,UOM), or GetValue(AFTimeRange,UOM).")]
public AFValue GetValue(
	Object context,
	Object timeContext,
	UOM desiredUOM
)
<BrowsableAttribute(false)>
<ObsoleteAttribute("This method has been replaced by GetValue(AFCase,UOM), GetValue(AFTime,UOM), or GetValue(AFTimeRange,UOM).")>
Public Function GetValue ( 
	context As Object,
	timeContext As Object,
	desiredUOM As UOM
) As AFValue

Dim instance As AFAttribute
Dim context As Object
Dim timeContext As Object
Dim desiredUOM As UOM
Dim returnValue As AFValue

returnValue = instance.GetValue(context, 
	timeContext, desiredUOM)
public:
[BrowsableAttribute(false)]
[ObsoleteAttribute(L"This method has been replaced by GetValue(AFCase,UOM), GetValue(AFTime,UOM), or GetValue(AFTimeRange,UOM).")]
AFValue^ GetValue(
	Object^ context, 
	Object^ timeContext, 
	UOM^ desiredUOM
)
[<BrowsableAttribute(false)>]
[<ObsoleteAttribute("This method has been replaced by GetValue(AFCase,UOM), GetValue(AFTime,UOM), or GetValue(AFTimeRange,UOM).")>]
member GetValue : 
        context : Object * 
        timeContext : Object * 
        desiredUOM : UOM -> AFValue 

Parameters

context
Type: SystemObject
The case context to be used when getting the attribute's value. If the case context is , then no context is used when getting the attribute's value. If the case context is not and the case context is not supported by this attribute's configuration, as indicated by the SupportedContexts property, then the context will be changed to an AFTimeRange context represented by the case's start and end times.
timeContext
Type: SystemObject
The time range context to be used when getting the attribute's value. If the time range context is not supported by this attribute's configuration, as indicated by the SupportedContexts property, then the context will be changed to an AFTime context at the end of the time range. The time context to be used when getting the attribute's value.
desiredUOM
Type: OSIsoft.AF.UnitsOfMeasureUOM
The desired unit of measure for the returned value. If , then the value is returned in the unit of measure specified by the DefaultUOM property.

Return Value

Type: AFValue
Returns the AFValue for the attribute.

Remarks

This method is obsolete and has been replaced by the GetValue(AFCase, UOM), GetValue(AFTime, UOM), or GetValue(AFTimeRange, UOM) methods.

Version Information

AFSDK

Obsolete (compiler warning) in 3.1.1
Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5
Obsolete (compiler warning) in 2.10.0
Obsolete (compiler warning) in 2.10
Obsolete (compiler warning) in 2.9.5
Obsolete (compiler warning) in 2.9
Obsolete (compiler warning) in 2.8.5
Obsolete (compiler warning) in 2.8
Obsolete (compiler warning) in 2.7.5
Obsolete (compiler warning) in 2.7
Obsolete (compiler warning) in 2.6
Obsolete (compiler warning) in 2.5
Obsolete (compiler warning) in 2.4

See Also

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