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

AF SDK Reference

AFAttributeVariable.MapAttribute Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeVariable.MapAttribute Method
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.

Version Information

AFSDK


See Also

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