AFAttributeVariable Constructor (String, String, AFAttributeVariableType, AFAttributeTemplate, AFAnalysisRule)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.