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

AF SDK Reference

AFAnalysisRule.MapVariable Method (String, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAnalysisRule.MapVariable Method (String, String)
Maps a variable to a new attribute name.

Namespace:  OSIsoft.AF.Analysis
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public void MapVariable(
	string name,
	string newAttributeName
)
Public Sub MapVariable ( 
	name As String,
	newAttributeName As String
)

Dim instance As AFAnalysisRule
Dim name As String
Dim newAttributeName As String

instance.MapVariable(name, newAttributeName)
public:
void MapVariable(
	String^ name, 
	String^ newAttributeName
)
member MapVariable : 
        name : string * 
        newAttributeName : string -> unit 

Parameters

name
Type: SystemString
The variable name for mapped attribute.
newAttributeName
Type: SystemString
The name of the attribute the variable is mapped to.

Version Information

AFSDK


See Also

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