AFAnalysisRules.Add Method (AFPlugIn)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This methods adds an Analysis Rule defined by the specified PlugIn to the model analysis.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFAnalysisRule Add( AFPlugIn plugIn )
Public Function Add ( plugIn As AFPlugIn ) As AFAnalysisRule Dim instance As AFAnalysisRules Dim plugIn As AFPlugIn Dim returnValue As AFAnalysisRule returnValue = instance.Add(plugIn)
public: AFAnalysisRule^ Add( AFPlugIn^ plugIn )
member Add : plugIn : AFPlugIn -> AFAnalysisRule
Parameters
- plugIn
- Type: OSIsoft.AFAFPlugIn
The AnalysisRule PlugIn to add to the collection.
Return Value
Type: AFAnalysisRuleReturns the newly created Analysis Rule that was added to the collection.