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.GetDateOfNextOccurence

When overridden in a derived class, gets the next valid scheduled day to raise the event, without taking into account StartTime, EndTime, or Interval.

[Visual Basic]
MustOverride Protected Function GetDateOfNextOccurence( _
   ByVal baseDate As DateTime _
) As DateTime
[C#]
protected abstract DateTime GetDateOfNextOccurence(
   DateTime baseDate
);
[C++]
protected: virtual DateTime GetDateOfNextOccurence(
   DateTime baseDate
) = 0;
[JScript]
protected abstract function GetDateOfNextOccurence(
   baseDate : DateTime
) : DateTime;

Parameters

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

Return Value

A DateTime that represents the next valid date 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 throw the argument exceptions.

See Also

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