RecurrenceRecur Daily Method
Initialize a daily recurrence pattern
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public void RecurDaily(
int recurInterval
)VB
Public Sub RecurDaily (
recurInterval As Integer
)C++
public:
void RecurDaily(
int recurInterval
)F#
member RecurDaily :
recurInterval : int -> unit Parameters
- recurInterval Int32
- The interval between occurrences in days
Remarks
This is a convenience method that mimics the daily recurrence pattern in Microsoft Outlook.
When called, it sets up the recurrence for a daily pattern that recurs at the specified interval.
All rule parts are cleared prior to setting the daily options but other parameters such as the start
date are left alone.
Example
C#
// Test daily recurrence
rRecur.RecurDaily(2);
rRecur.StartDateTime = DateTime.Today;
rRecur.RecurUntil = DateTime.Today.AddMonths(1);
// With a collection
DateTimeCollection recurDates = rRecur.InstancesBetween(DateTime.Today,
DateTime.Today.AddMonths(1));
foreach(DateTime dt in recurDates)
Console.WriteLine("Daily recurrence on: {0:d}", dt);
// Using the enumerator
foreach(DateTime dt in rRecur)
Console.WriteLine("Daily recurrence on: {0:d}", dt);VB
' Test daily recurrence
rRecur.RecurDaily(2)
rRecur.StartDateTime = DateTime.Today
rRecur.RecurUntil = DateTime.Today.AddMonths(1)
' With a collection
Dim recurDates As DateTimeCollection = rRecur.InstancesBetween(DateTime.Today,
DateTime.Today.AddMonths(1))
For Each dt In recurDates
Console.WriteLine("Daily recurrence on: {0:d}", dt)
Next
' Using the enumerator
For Each dt In rRecur
Console.WriteLine("Daily recurrence on: {0:d}", dt)
NextC++
No code example is currently available or this language may not be supported.F#
No code example is currently available or this language may not be supported.