AFTimeRule.GetNextEvent Method (AFTime)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- 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.2.0.7
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.