AFAnalysisRule.GetTarget Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Get the target associated with the specified AFAnalysisRule.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
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.