Recurrence(String) Constructor
Construct a recurrence from a string in vCalendar 1.0 basic grammar format or iCalendar 2.0
RRULE/EXRULE format.
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 Recurrence(
string recur
)VB
Public Sub New (
recur As String
)C++
public:
Recurrence(
String^ recur
)F#
new :
recur : string -> RecurrenceParameters
- recur String
- The recurrence parameters in vCalendar 1.0 basic grammar format or iCalendar 2.0 RRULE/EXRULE format.
Remarks
The RRULE or EXRULE property name is ignored if present
Example
C#
Recurrence r = new Recurrence("FREQ=DAILY;COUNT=30;INTERVAL=5");
// The above is equivalent to:
// Recurrence r = new Recurrence();
// r.Parse("FREQ=DAILY;COUNT=30;INTERVAL=5");
// Set the start date
r.StartDateTime = DateTime.Today;
// Get all instances generated by the recurrence
DateTimeCollection dc = r.AllInstances();VB
Dim r As New Recurrence("FREQ=DAILY;COUNT=30;INTERVAL=5");
' The above is equivalent to:
' Dim r As New Recurrence()
' r.Parse("FREQ=DAILY;COUNT=30;INTERVAL=5")
' Set the start date
r.StartDateTime = DateTime.Today;
' Get all instances generated by the recurrence
Dim dc As DateTimeCollection = r.AllInstances();C++
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.