AFVariableMap.Item Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets or sets the AFVariableMappingData associated with the specified variable name.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFVariableMappingData this[ string variableName ] { get; set; }
Public Default Property Item ( variableName As String ) As AFVariableMappingData Get Set Dim instance As AFVariableMap Dim variableName As String Dim value As AFVariableMappingData value = instance(variableName) instance(variableName) = value
public: property AFVariableMappingData^ default[String^ variableName] { AFVariableMappingData^ get (String^ variableName); void set (String^ variableName, AFVariableMappingData^ value); }
member Item : AFVariableMappingData with get, set
Parameters
- variableName
- Type: SystemString
The name of the variable whose configuration should be retrieved.
Return Value
Type: AFVariableMappingDataThe configured AFVariableMappingData for the specified variable or null if the variable name is not present.