RecurrenceBySecond Property

This is used to modify the BYSECOND rule of a recurrence

Definition

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

Property Value

UniqueIntegerCollection

Remarks

The collection contains a set of unique integer values representing seconds values from 0 to 59.

Example

C#
Recurrence r = new Recurrence();

// Set the properties
r.Frequency = RecurFrequency.Daily;
r.StartDateTime = DateTime.Today;
r.Count = 20;
r.ByHour.AddRange(new int[] { 7, 10, 15 });
r.ByMinute.AddRange(new int[] { 30, 45 });
r.BySecond.AddRange(new int[] { 15, 30, 45 });

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

See Also