AFTimeRule.GetNextEvent Method (AFTime)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Returns the next AFTimeRuleEvent that occurs at the specified time start time.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual AFTimeRuleEvent GetNextEvent( AFTime startTime )
Public Overridable Function GetNextEvent ( startTime As AFTime ) As AFTimeRuleEvent Dim instance As AFTimeRule Dim startTime As AFTime Dim returnValue As AFTimeRuleEvent returnValue = instance.GetNextEvent(startTime)
public: virtual AFTimeRuleEvent^ GetNextEvent( AFTime startTime )
abstract GetNextEvent : startTime : AFTime -> AFTimeRuleEvent override GetNextEvent : startTime : AFTime -> AFTimeRuleEvent
Parameters
- startTime
- Type: OSIsoft.AF.TimeAFTime
The start time for the next requested event.
Return Value
Type: AFTimeRuleEventA new AFTimeRuleEvent for the next event for the specified startTime.