AFTimeRule.GetNextEvent Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Returns the next AFTimeRuleEvent that occurs relative to Now
or the previous event.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual AFTimeRuleEvent GetNextEvent()
Public Overridable Function GetNextEvent As AFTimeRuleEvent Dim instance As AFTimeRule Dim returnValue As AFTimeRuleEvent returnValue = instance.GetNextEvent()
public: virtual AFTimeRuleEvent^ GetNextEvent()
abstract GetNextEvent : unit -> AFTimeRuleEvent override GetNextEvent : unit -> AFTimeRuleEvent
Return Value
Type: AFTimeRuleEventA new TimeRuleEvent
Remarks
The AFTimeRule will typically return the latest time range in which both the start
and end times are not in the future. By default, this method returns the next event relative to
AFTime.Now. If supported by the implementation of the
AFTimeRule, the next calls return the next event relative to the previous event.