Returns the next valid scheduled date and time.
[Visual Basic] Public Function GetTimeOfNextOccurrence( _ ByVal baseTime As DateTime _ ) As DateTime [C#] public DateTime GetTimeOfNextOccurrence( DateTime baseTime ); [C++] public: DateTime GetTimeOfNextOccurrence( DateTime baseTime ); [JScript] public function GetTimeOfNextOccurrence( baseTime : DateTime ) : DateTime;
A DateTime that represents the next valid time to raise an event.
This method finds the next valid time to raise an event by searching the collection of recurrence patterns for the pattern with the next valid time.
Schedule Class | Schedule Members | System.Timers Namespace | DateTime