RecurrenceBy Week No Property
This is used to modify the BYWEEKNO 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 UniqueIntegerCollection ByWeekNo { get; }VB
Public ReadOnly Property ByWeekNo As UniqueIntegerCollection
GetC++
public:
property UniqueIntegerCollection^ ByWeekNo {
UniqueIntegerCollection^ get ();
}F#
member ByWeekNo : UniqueIntegerCollection with getProperty Value
UniqueIntegerCollectionRemarks
The collection contains a set of unique integer values representing week number values from
-53 to +53 excluding zero. Negative values specify a week number from the end of the year. Positive
values specify a week number from the start of the year. This rule is only applicable to the
Yearly frequency. It is ignored for all other frequencies.
Example
C#
Recurrence r = new Recurrence();
// Set the properties
r.Frequency = RecurFrequency.Yearly;
r.StartDateTime = DateTime.Today;
r.Count = 20;
r.ByWeekNo.AddRange(new int[] { 10, 20, -50, -35 });
// Get all instances generated by the recurrence
DateTimeCollection dc = r.AllInstances();VB
Dim r As New Recurrence()
' Set the properties
r.Frequency = RecurFrequency.Yearly
r.StartDateTime = DateTime.Today
r.Count = 20
r.ByWeekNo.AddRange(New Integer() { 10, 20, -50, -35 })
' 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.