AFAttributeVariable.MapAttribute Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Maps the variable to the specified attribute specified by the relative path and target.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void MapAttribute( string relativePath, AFObject target )
Public Sub MapAttribute ( relativePath As String, target As AFObject ) Dim instance As AFAttributeVariable Dim relativePath As String Dim target As AFObject instance.MapAttribute(relativePath, target)
public: void MapAttribute( String^ relativePath, AFObject^ target )
member MapAttribute : relativePath : string * target : AFObject -> unit
Parameters
- relativePath
- Type: SystemString
The relative path to the target used to resolve AFAttribute or AFAttributeTemplate for this variable. - target
- Type: OSIsoft.AFAFObject
The target AFElement or AFElementTemplate used to resolve the AFAttribute or AFAttributeTemplate.