RecurrenceByMonth Property

This is used to modify the BYMONTH rule of a recurrence

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public UniqueIntegerCollection ByMonth { get; }

Property Value

UniqueIntegerCollection

Remarks

The collection contains a set of unique integer values representing month values from 1 to 12.

Example

C#
Recurrence r = new Recurrence();

// Set the properties
r.Frequency = RecurFrequency.Monthly;
r.StartDateTime = DateTime.Today;
r.Count = 20;
r.ByMonth.AddRange(new int[] { 1, 5, 10 });

// Get all instances generated by the recurrence
DateTimeCollection dc = r.AllInstances();

See Also