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!

RecurrencePattern.GetTimeOfNextOccurrence

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;

Parameters

baseDate
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

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.

See Also

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