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