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 (AFTime)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeRule.GetNextEvent Method (AFTime)
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: AFTimeRuleEvent
A new AFTimeRuleEvent for the next event for the specified startTime.

Version Information

AFSDK


See Also

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