AFVariableMap.ClearAllExceptSpecified Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Clears all AFVariableMappingDatas defined in this AFVariableMap except for the variable names specified.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void ClearAllExceptSpecified( IEnumerable<string> variablesToKeep )
Public Sub ClearAllExceptSpecified ( variablesToKeep As IEnumerable(Of String) ) Dim instance As AFVariableMap Dim variablesToKeep As IEnumerable(Of String) instance.ClearAllExceptSpecified(variablesToKeep)
public: void ClearAllExceptSpecified( IEnumerable<String^>^ variablesToKeep )
member ClearAllExceptSpecified : variablesToKeep : IEnumerable<string> -> unit
Parameters
- variablesToKeep
- Type: System.Collections.GenericIEnumerableString
The variables whose configuration should be retained.
Remarks
Use this method to clear out unused mappings by passing in a list of active input and output variable names.