RecurrenceByHour Property
This is used to modify the BYHOUR rule of a recurrence
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2023.1.2.0
public UniqueIntegerCollection ByHour { get; }
Public ReadOnly Property ByHour As UniqueIntegerCollection
Get
public:
property UniqueIntegerCollection^ ByHour {
UniqueIntegerCollection^ get ();
}
member ByHour : UniqueIntegerCollection with get
Property Value
UniqueIntegerCollection The collection contains a set of unique integer values representing hour values from 0 to
23.
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();
Dim r As New Recurrence()
' Set the properties
r.Frequency = RecurFrequency.Monthly
r.StartDateTime = DateTime.Today
r.Count = 20
r.ByHour.AddRange(New Integer() { 7, 10, 15 })
r.ByMinute.AddRange(New Integer() { 30, 45 })
r.BySecond.AddRange(New Integer() { 15, 30, 45 })
' Get all instances generated by the recurrence
Dim dc As DateTimeCollection = r.AllInstances()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.