RecurrenceOccurs On Method
This method is used to determine whether or not an instance of the recurrence falls on the specified
date/time.
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Returns true if an instance occurs on the specified date/time, false if not
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public bool OccursOn(
DateTime checkDate,
bool includeTime
)VB
Public Function OccursOn (
checkDate As DateTime,
includeTime As Boolean
) As BooleanC++
public:
bool OccursOn(
DateTime checkDate,
bool includeTime
)F#
member OccursOn :
checkDate : DateTime *
includeTime : bool -> bool Parameters
- checkDate DateTime
- The date/time to check for an occurrence.
- includeTime Boolean
- If true, time is included in the search. If false, time is ignored and it returns true if an instance occurs at any time on the given date.
Return Value
BooleanReturns true if an instance occurs on the specified date/time, false if not