AFAnalysisRule.FindAnalysisRule Method (AFAnalysisTemplate, Guid)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves the AFAnalysisRule object from the AFAnalysisTemplate
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( AFAnalysisTemplate template, Guid id )
Public Shared Function FindAnalysisRule ( template As AFAnalysisTemplate, id As Guid ) As AFAnalysisRule Dim template As AFAnalysisTemplate Dim id As Guid Dim returnValue As AFAnalysisRule returnValue = AFAnalysisRule.FindAnalysisRule(template, id)
public: static AFAnalysisRule^ FindAnalysisRule( AFAnalysisTemplate^ template, Guid id )
static member FindAnalysisRule : template : AFAnalysisTemplate * id : Guid -> AFAnalysisRule
Parameters
- template
- Type: OSIsoft.AF.AnalysisAFAnalysisTemplate
The AFAnalysisTemplate 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 template.
Return Value
Type: AFAnalysisRuleReturns the AFAnalysisRule identified by the id in the specified template.