Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTimeRule.GetNextEvent Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeRule.GetNextEvent Method
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: AFTimeRuleEvent
A 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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in