RecurrenceBy Day Property
This is used to modify the BYDAY rule of a recurrence
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 DayInstanceCollection ByDay { get; }VB
Public ReadOnly Property ByDay As DayInstanceCollection
GetC++
public:
property DayInstanceCollection^ ByDay {
DayInstanceCollection^ get ();
}F#
member ByDay : DayInstanceCollection with getProperty Value
DayInstanceCollectionRemarks
The collection contains a set of unique DayInstance values representing day of
the week instances on which calculated recurrence dates can fall.
Example
C#
Recurrence r = new Recurrence();
// Set the properties
r.Frequency = RecurFrequency.Monthly;
r.StartDateTime = DateTime.Today;
r.Count = 20;
// Any Monday, Wednesday, or Friday
r.ByDay.AddRange(new DayOfWeek[] { DayOfWeek.Monday, DayOfWeek.Wednesday,
DayOfWeek.Friday });
// Limit to the first and last in the set
r.BySetPos.AddRange(new int[] { 1, -1 });
// Get all instances generated by the recurrence
DateTimeCollection dc = r.AllInstances();VB
Dim r As New Recurrence()
' Set the properties
r.Frequency = RecurFrequency.Monthly
r.StartDateTime = DateTime.Today
r.Count = 20
r.Frequency = RecurFrequency.Monthly
r.StartDateTime = DateTime.Today
r.Count = 20
' Any Monday, Wednesday, or Friday
r.ByDay.AddRange(New DayOfWeek() { DayOfWeek.Monday, DayOfWeek.Wednesday,
DayOfWeek.Friday })
' Limit to the first and last in the set
r.BySetPos.AddRange(New Integer() { 1, -1 })
' 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.