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

AF SDK Reference

AFAttributeVariable Constructor (String, String, AFAttributeVariableType, AFAttributeTemplate, AFAnalysisRule)

AFAttributeVariable Constructor (String, String, AFAttributeVariableType, AFAttributeTemplate, AFAnalysisRule)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeVariable Constructor (String, String, AFAttributeVariableType, AFAttributeTemplate, AFAnalysisRule)
Creates a new AFAttributeVariable object.

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

Syntax

public AFAttributeVariable(
	string name,
	string mappedName,
	AFAttributeVariableType variableType,
	AFAttributeTemplate attributeTemplate,
	AFAnalysisRule analysisRule
)
Public Sub New ( 
	name As String,
	mappedName As String,
	variableType As AFAttributeVariableType,
	attributeTemplate As AFAttributeTemplate,
	analysisRule As AFAnalysisRule
)

Dim name As String
Dim mappedName As String
Dim variableType As AFAttributeVariableType
Dim attributeTemplate As AFAttributeTemplate
Dim analysisRule As AFAnalysisRule

Dim instance As New AFAttributeVariable(name, mappedName, 
	variableType, attributeTemplate, 
	analysisRule)
public:
AFAttributeVariable(
	String^ name, 
	String^ mappedName, 
	AFAttributeVariableType variableType, 
	AFAttributeTemplate^ attributeTemplate, 
	AFAnalysisRule^ analysisRule
)
new : 
        name : string * 
        mappedName : string * 
        variableType : AFAttributeVariableType * 
        attributeTemplate : AFAttributeTemplate * 
        analysisRule : AFAnalysisRule -> AFAttributeVariable

Parameters

name
Type: SystemString
The variable name.
mappedName
Type: SystemString
The string the VariableMap resolved the name to.
variableType
Type: OSIsoft.AF.AnalysisAFAttributeVariableType
The type of data access the variable will be used for.
attributeTemplate
Type: OSIsoft.AF.AssetAFAttributeTemplate
The AFAttributeTemplate the mapped name resolved to.
analysisRule
Type: OSIsoft.AF.AnalysisAFAnalysisRule
The AFAnalysisRule associated with this variable.

Version Information

AFSDK


See Also

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