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

AF SDK Reference

AFCase.AddInput Method (AFAttribute, Object, UOM)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCase.AddInput Method (AFAttribute, Object, UOM)
Adds an attribute and a specified value to the result set.

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

Syntax

public AFResult AddInput(
	AFAttribute attribute,
	Object value,
	UOM uom
)
Public Function AddInput ( 
	attribute As AFAttribute,
	value As Object,
	uom As UOM
) As AFResult

Dim instance As AFCase
Dim attribute As AFAttribute
Dim value As Object
Dim uom As UOM
Dim returnValue As AFResult

returnValue = instance.AddInput(attribute, 
	value, uom)
public:
AFResult^ AddInput(
	AFAttribute^ attribute, 
	Object^ value, 
	UOM^ uom
)
member AddInput : 
        attribute : AFAttribute * 
        value : Object * 
        uom : UOM -> AFResult 

Parameters

attribute
Type: OSIsoft.AF.AssetAFAttribute
The attribute to add to the result set.
value
Type: SystemObject
The value of the attribute
uom
Type: OSIsoft.AF.UnitsOfMeasureUOM
The unit of measure of the value parameter. If , then the unit of measure may be specified as part of the value in string format (e.g. "100.0 ft"). Otherwise, the unit of measure of the value is assumed to be in terms of the attribute's DefaultUOM property.

Return Value

Type: AFResult
Returns the newly created input AFResult.

Remarks

This method adds the specified AFAttribute and the specified value and UOM to the result set. Use this method if you do not want the SDK to automatically determine the attribute's value at the time of the case.

Version Information

AFSDK


See Also

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