RecurrenceNextInstance Method
This method is used to return the next recurring instances on or after the specified date/time based
on the current settings.
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public DateTime NextInstance(
DateTime fromDate,
bool onlyAfter
)
Public Function NextInstance (
fromDate As DateTime,
onlyAfter As Boolean
) As DateTime
public:
DateTime NextInstance(
DateTime fromDate,
bool onlyAfter
)
member NextInstance :
fromDate : DateTime *
onlyAfter : bool -> DateTime
- 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.
DateTimeReturns a
DateTime that represent the next instance found or
DateTime.MinValue
if there are no more instances.