AFCase.AddInput Method (AFAttribute, AFValue)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Adds an attribute and a specified AFValue 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, AFValue value )
Public Function AddInput ( attribute As AFAttribute, value As AFValue ) As AFResult Dim instance As AFCase Dim attribute As AFAttribute Dim value As AFValue Dim returnValue As AFResult returnValue = instance.AddInput(attribute, value)
public: AFResult^ AddInput( AFAttribute^ attribute, AFValue^ value )
member AddInput : attribute : AFAttribute * value : AFValue -> AFResult
Parameters
- attribute
- Type: OSIsoft.AF.AssetAFAttribute
The attribute to add to the result set. - value
- Type: OSIsoft.AF.AssetAFValue
The value of the attribute.
Return Value
Type: AFResultReturns the newly created input AFResult.
Remarks
This method adds the specified AFAttribute and the specified value
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.