NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Schedule.GetTimeOfNextOccurrence

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;

Parameters

baseTime
The DateTime after which the next valid date and time should be calculated.

Return Value

A DateTime that represents the next valid time to raise an event.

Remarks

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.

See Also

Schedule Class | Schedule Members | System.Timers Namespace | DateTime