AFCase.AddInput Method (AFAttribute, Object, UOM)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: AFResultReturns 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.