AFAnalysisRule.GetTarget Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Get the target associated with the specified AFAnalysisRule.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static AFObject GetTarget( AFAnalysisRule analysisRule )
Public Shared Function GetTarget ( analysisRule As AFAnalysisRule ) As AFObject Dim analysisRule As AFAnalysisRule Dim returnValue As AFObject returnValue = AFAnalysisRule.GetTarget(analysisRule)
public: static AFObject^ GetTarget( AFAnalysisRule^ analysisRule )
static member GetTarget : analysisRule : AFAnalysisRule -> AFObject
Parameters
- analysisRule
- Type: OSIsoft.AF.AnalysisAFAnalysisRule
The target of the specified AFAnalysisRule to be returned.
Return Value
Type: AFObjectReturns the target (an AFElement or AFElementTemplate) associated with the AFAnalysisRule.