Gets the next valid time to raise the event.
[Visual Basic] Overridable Public Function GetTimeOfNextOccurrence( _ ByVal baseDate As DateTime _ ) As DateTime [C#] public virtual DateTime GetTimeOfNextOccurrence( DateTime baseDate ); [C++] public: virtual DateTime GetTimeOfNextOccurrence( DateTime baseDate ); [JScript] public function GetTimeOfNextOccurrence( baseDate : DateTime ) : DateTime;
A DateTime that represents the next valid time to raise an event.
Normally, this method is called by Schedule, which will ensure no argument exceptions are thrown. If you call this method directly, DateTime will handle the argument exceptions.
RecurrencePattern Class | RecurrencePattern Members | System.Timers Namespace | DateTime | System.Schedule