Recurrence.RecurYearly(Int32, Int32, Int32) Method
Initialize a yearly recurrence that occurs on a specific month and day at the specified yearly
interval.
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
public void RecurYearly(
int month,
int day,
int recurInterval
)
Public Sub RecurYearly (
month As Integer,
day As Integer,
recurInterval As Integer
)
public:
void RecurYearly(
int month,
int day,
int recurInterval
)
member RecurYearly :
month : int *
day : int *
recurInterval : int -> unit
Parameters
- month Int32
- The month in which to occur
- day Int32
- The day on which to occur
- recurInterval Int32
- The interval between occurrences in years
This is a convenience method that mimics the yearly recurrence pattern in Microsoft Outlook.
When called, it sets up the recurrence for a yearly pattern that recurs at the specified interval on
the specified month and day. All rule parts are cleared prior to setting the yearly options but
other parameters such as the start date are left alone.
rRecur.RecurYearly(5, 24, 1);
rRecur.StartDateTime = DateTime.Today;
rRecur.RecurUntil = DateTime.Today.AddYears(5);
Dim recurDates = rRecur.InstancesBetween(DateTime.Today,
DateTime.Today.AddYears(5));
foreach(DateTime dt in recurDates)
Console.WriteLine("Yearly recurrence on: {0:d}", dt);
foreach(DateTime dt in rRecur)
Console.WriteLine("Yearly recurrence on: {0:d}", dt);
rRecur.RecurYearly(DayOccurrence.Last, DaysOfWeek.Sunday, 9, 2);
rRecur.StartDateTime = DateTime.Today;
recurDates = rRecur.InstancesBetween(DateTime.Today, DateTime.Today.AddYears(5));
foreach(DateTime dt in recurDates)
Console.WriteLine("Yearly recurrence on: {0:d}", dt);
foreach(DateTime dt in rRecur)
Console.WriteLine("Yearly recurrence on: {0:d}", dt);
rRecur.RecurYearly(5, 24, 1)
rRecur.StartDateTime = DateTime.Today
rRecur.RecurUntil = DateTime.Today.AddYears(5)
Dim recurDates As DateTimeCollection = rRecur.InstancesBetween(DateTime.Today,
DateTime.Today.AddYears(5))
For Each dt In recurDates
Console.WriteLine("Yearly recurrence on: {0:d}", dt)
Next
For Each dt In rRecur
Console.WriteLine("Yearly recurrence on: {0:d}", dt)
Next
rRecur.RecurYearly(DayOccurrence.Last, DaysOfWeek.Sunday, 9, 2)
rRecur.StartDateTime = DateTime.Today
recurDates = rRecur.InstancesBetween(DateTime.Today, DateTime.Today.AddYears(5))
For Each dt In recurDates
Console.WriteLine("Yearly recurrence on: {0:d}", dt)
Next
For Each dt In rRecur
Console.WriteLine("Yearly recurrence on: {0:d}", dt)
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.