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