Indicates the occurrence of the specific day within a
MONTHLY or YEARLY recurrence frequency. For example, within
a MONTHLY frequency, consider the following:
Recur r = new Recur();
r.Frequency = FrequencyType.Monthly;
r.ByDay.Add(new WeekDay(DayOfWeek.Monday, FrequencyOccurrence.First));
The above example represents the first Monday within the month,
whereas if FrequencyOccurrence.Last were specified, it would
represent the last Monday of the month.
For a YEARLY frequency, consider the following:
Recur r = new Recur();
r.Frequency = FrequencyType.Yearly;
r.ByDay.Add(new WeekDay(DayOfWeek.Monday, FrequencyOccurrence.Second));
The above example represents the second Monday of the year. This can
also be represented with the following code:
r.ByDay.Add(new WeekDay(DayOfWeek.Monday, 2));
Namespace: iCalAssembly: ICalVCard (in ICalVCard.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public enum FrequencyOccurrence |
Visual Basic |
---|
Public Enumeration FrequencyOccurrence |
Visual C++ |
---|
public enum class FrequencyOccurrence |
Members
See Also