IRecurrenceDescriptor interface


An interface that provides the required information for describing a recurrence rule. All of the properties of the interface are “read-only” – only with getters.

Properties:

DateTime StartDate
- Gets the start of the recurring event

DateTime RecursUntil - Gets the end date for the recurring event. Defaults to no end date (DateTime.MaxValue).

TimeSpan Duration - Gets the duration of the recurring event.

int MaxOccurrences - Gets the limit for the number of occurrences. Defaults to no limit (Int32.MaxInt).

int Interval - Gets the interval of recurrence.

For developers: Recurrence enumerators Frequency - enumerated constant that indicates the frequency of recurrence. The default value is RecurrenceFrequency.None.

IEnumerable<DateTime> Occurrences - Gets the evaluated occurrence times of this recurrence rule. Occurrence times are in UTC.

IEnumerable<DateTime> Exceptions - Gets a collection of the exception dates associated with this recurrence rule.

For developers: Recurrence enumerators DaysOfWeek - Gets the bit mask that specifies the week days on which the event recurs.

DayOfWeek FirstDayOfWeek - Gets the day on which the week starts. This property is only meaningful when RecurrenceFrequency is set to RecurrenceFrequency.Weekly and Interval is greater than 1.

int DayOrdinal - This property is meaningful only when RecurrenceFrequency is set to RecurrenceFrequency.Monthly or RecurrenceFrequency.Yearly and DayOfMonth is not set. In such scenario it selects the n-th occurrence within the set of events specified by the rule. Valid values are from -31 to +31, 0 is ignored. For example with RecurrenceFrequency set to Monthly and DaysOfWeekMask set to Monday DayOfMonth is interpreted in the following way:

1: Selects the first monday of the month

3: Selects the third monday of the month

-1: Selects the last monday of the month

int DayOfMonth - Gets the day month on which the event recurs.

For developers: Recurrence enumerators Month - Gets the month on which the event recurs. This property is only meaningful when RecurrenceFrequency is set to RecurrenceFrequency.Yearly

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Extension methods