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, AFAttribute, AFAnalysisRule)

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

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAttributeVariable Constructor (String, String, AFAttributeVariableType, AFAttribute, 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,
	AFAttribute attribute,
	AFAnalysisRule analysisRule
)
Public Sub New ( 
	name As String,
	mappedName As String,
	variableType As AFAttributeVariableType,
	attribute As AFAttribute,
	analysisRule As AFAnalysisRule
)

Dim name As String
Dim mappedName As String
Dim variableType As AFAttributeVariableType
Dim attribute As AFAttribute
Dim analysisRule As AFAnalysisRule

Dim instance As New AFAttributeVariable(name, mappedName, 
	variableType, attribute, analysisRule)
public:
AFAttributeVariable(
	String^ name, 
	String^ mappedName, 
	AFAttributeVariableType variableType, 
	AFAttribute^ attribute, 
	AFAnalysisRule^ analysisRule
)
new : 
        name : string * 
        mappedName : string * 
        variableType : AFAttributeVariableType * 
        attribute : AFAttribute * 
        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.
attribute
Type: OSIsoft.AF.AssetAFAttribute
The AFAttribute 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