AFAnalysisRule.MapVariable Method (String, AFAttribute)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Maps a variable to the specified AFAttribute.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void MapVariable( string name, AFAttribute attribute )
Public Sub MapVariable ( name As String, attribute As AFAttribute ) Dim instance As AFAnalysisRule Dim name As String Dim attribute As AFAttribute instance.MapVariable(name, attribute)
public: void MapVariable( String^ name, AFAttribute^ attribute )
member MapVariable : name : string * attribute : AFAttribute -> unit
Parameters
- name
- Type: SystemString
The variable name for mapped attribute. - attribute
- Type: OSIsoft.AF.AssetAFAttribute
The attribute the variable is mapped to.