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

AF SDK Reference

AFAttribute.GetValues Method (AFAnalysis, IList(AFCase), UOM)

AFAttribute.GetValues Method (AFAnalysis, IList(AFCase), UOM)

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFAttribute.GetValues Method (AFAnalysis, IList(AFCase), UOM)
This method gets a collection of AFValue objects for an attribute in each of the cases.

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

Syntax

public AFValues GetValues(
	AFAnalysis analysis,
	IList<AFCase> cases,
	UOM desiredUOM
)
Public Function GetValues ( 
	analysis As AFAnalysis,
	cases As IList(Of AFCase),
	desiredUOM As UOM
) As AFValues

Dim instance As AFAttribute
Dim analysis As AFAnalysis
Dim cases As IList(Of AFCase)
Dim desiredUOM As UOM
Dim returnValue As AFValues

returnValue = instance.GetValues(analysis, 
	cases, desiredUOM)
public:
AFValues^ GetValues(
	AFAnalysis^ analysis, 
	IList<AFCase^>^ cases, 
	UOM^ desiredUOM
)
member GetValues : 
        analysis : AFAnalysis * 
        cases : IList<AFCase> * 
        desiredUOM : UOM -> AFValues 

Parameters

analysis
Type: OSIsoft.AF.AnalysisAFAnalysis
If all the cases in the cases list are from the same AFAnalysis, then specify the owning analysis in this parameter so the case results can be obtained more efficiently from the server. If this parameter is , then the result is obtained from each specified AFCase in the list one at a time.
cases
Type: System.Collections.GenericIListAFCase
The list of AFCase objects from which get the attribute's value.
desiredUOM
Type: OSIsoft.AF.UnitsOfMeasureUOM
The desired unit of measure for the returned values. If not specified or , then the values are returned in the unit of measure specified by the DefaultUOM property.

Return Value

Type: AFValues
Returns the collection of values for the attribute sorted in increasing time order.

Remarks

The returned collection of AFValue objects represent the values of the attribute in each of the cases in the specified UOM. See GetValue Overload for more specific information on UOM and type conversion. This is equivalent to retrieving the collection of attribute values that would have been returned by calling GetValue(AFCase, UOM) with the context of each case in the collection.

Version Information

AFSDK


See Also

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