AFVariableMap Methods
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFVariableMap type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Clear |
Clears all defined variable mappings.
| |
| ClearAllExceptSpecified |
Clears all AFVariableMappingDatas defined in this AFVariableMap except for the variable names specified.
| |
| Create |
Gets an AFVariableMap with empty configuration.
| |
| Create(String) |
Gets an AFVariableMap with values from the serialized configuration.
| |
| Create(AFAnalysisRule) |
Gets a disconnected AFVariableMap with the configuration loaded from the specified analysis rule.
Changes to the returned instance will not be written back to the analysis rule.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsVariableMapped |
Returns true if there is an AFVariableMappingData configured for the specified variable name and false otherwise.
| |
| RefreshMappings |
Refreshes variablemappings and updates it with resolved attributes if needed.
| |
| RemoveMapping |
Remove any mapping for the specified variable name
| |
| RemoveMappings |
Clears all AFVariableMappingDatas defined in this AFVariableMap whose name appears in the variablesToRemove enumeration.
| |
| SetMapping |
Sets the AFVariableMappingData associated with the specified variable name.
| |
| SetVariableMap |
Overwrites this AFVariableMap with the contents of passed variable map.
| |
| ToString |
Gets the serialized form of the variable mapping.
(Overrides ObjectToString.) | |
| TryGetMapping |
Tries to find an AFVariableMappingData for the specified variable name.
|