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

AF SDK Reference

AFVariableMap Class

  • Last UpdatedNov 18, 2025
  • 4 minute read
AFVariableMap Class
The variable mapping configuration for an AFAnalysisRule.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.AnalysisAFVariableMap

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

Syntax

public abstract class AFVariableMap
Public MustInherit Class AFVariableMap

Dim instance As AFVariableMap
public ref class AFVariableMap abstract
[<AbstractClassAttribute>]
type AFVariableMap =  class end

The AFVariableMap type exposes the following members.

Properties

  NameDescription
Public property
Item
Gets or sets the AFVariableMappingData associated with the specified variable name.

Methods

  NameDescription
Public method
Clear
Clears all defined variable mappings.
Public method
ClearAllExceptSpecified
Clears all AFVariableMappingDatas defined in this AFVariableMap except for the variable names specified.
Public methodStatic member
Create
Gets an AFVariableMap with empty configuration.
Public methodStatic member
Create(String)
Gets an AFVariableMap with values from the serialized configuration.
Public methodStatic member
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.
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
IsVariableMapped
Returns true if there is an AFVariableMappingData configured for the specified variable name and false otherwise.
Public method
RefreshMappings
Refreshes variablemappings and updates it with resolved attributes if needed.
Public method
RemoveMapping
Remove any mapping for the specified variable name
Public method
RemoveMappings
Clears all AFVariableMappingDatas defined in this AFVariableMap whose name appears in the variablesToRemove enumeration.
Public method
SetMapping
Sets the AFVariableMappingData associated with the specified variable name.
Public method
SetVariableMap
Overwrites this AFVariableMap with the contents of passed variable map.
Public method
ToString
Gets the serialized form of the variable mapping.
(Overrides ObjectToString.)
Public method
TryGetMapping
Tries to find an AFVariableMappingData for the specified variable name.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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