AFAnalysisRule.FindAnalysisRule Method (AFAnalysis, Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFAnalysisRule object from the AFAnalysis
with the specified unique identifier.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFAnalysisRule FindAnalysisRule( AFAnalysis analysis, Guid id )
Public Shared Function FindAnalysisRule ( analysis As AFAnalysis, id As Guid ) As AFAnalysisRule Dim analysis As AFAnalysis Dim id As Guid Dim returnValue As AFAnalysisRule returnValue = AFAnalysisRule.FindAnalysisRule(analysis, id)
public: static AFAnalysisRule^ FindAnalysisRule( AFAnalysis^ analysis, Guid id )
static member FindAnalysisRule : analysis : AFAnalysis * id : Guid -> AFAnalysisRule
Parameters
- analysis
- Type: OSIsoft.AF.AnalysisAFAnalysis
The AFAnalysis to search for the AFAnalysisRule identified by the specified id parameter. - id
- Type: SystemGuid
The unique identifier of the AFAnalysisRule to search for in the specified analysis.
Return Value
Type: AFAnalysisRuleReturns the AFAnalysisRule identified by the id in the specified analysis.