RecurrenceNext Instance Method
This method is used to return the next recurring instances on or after the specified date/time based
on the current settings.
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Returns a DateTime that represent the next instance found or DateTime.MinValue if there are no more instances.
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public DateTime NextInstance(
DateTime fromDate,
bool onlyAfter
)VB
Public Function NextInstance (
fromDate As DateTime,
onlyAfter As Boolean
) As DateTimeC++
public:
DateTime NextInstance(
DateTime fromDate,
bool onlyAfter
)F#
member NextInstance :
fromDate : DateTime *
onlyAfter : bool -> DateTime Parameters
- fromDate DateTime
- The minimum date/time on or after which the instance should occur.
- onlyAfter Boolean
- Specify true to only return a next instance if it occurs after the specified date/time. If false, it will allow an exact match on the specified date/time to be returned as well.
Return Value
DateTimeReturns a DateTime that represent the next instance found or DateTime.MinValue if there are no more instances.