# Recurrence enumerators

An enum representing the frequency of the recurrence.

 <table cellspacing="0" cellpadding="0" border="0">
<colgroup><col><col><col></colgroup>
<tbody>
<tr>
<td>

<p><strong>Property</strong></p>

</td>
<td>

<p><strong>Type</strong></p>

</td>
<td>

<p><strong>Description</strong></p>

</td>
</tr>
<tr>
<td>

<p>None</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates no recurrence</p>

</td>
</tr>
<tr>
<td>

<p>Hourly</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates hourly recurrence</p>

</td>
</tr>
<tr>
<td>

<p>Daily</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates daily recurrence</p>

</td>
</tr>
<tr>
<td>

<p>Weekly</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates weekly recurrence</p>

</td>
</tr>
<tr>
<td>

<p>Monthly</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates monthly recurrence</p>

</td>
</tr>
<tr>
<td>

<p>Yearly</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates yearly recurrence</p>

</td>
</tr>
</tbody>
</table>

##

RecurrenceMonth

An enum representing the months in which the event recurs.

 <table cellspacing="0" cellpadding="0" border="0">
<colgroup><col><col><col></colgroup>
<tbody>
<tr>
<td>

<p><strong>Property</strong></p>

</td>
<td>

<p><strong>Type</strong></p>

</td>
<td>

<p><strong>Description</strong></p>

</td>
</tr>
<tr>
<td>

<p>None = 0</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates no monthly recurrence</p>

</td>
</tr>
<tr>
<td>

<p>January = 1</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in January</p>

</td>
</tr>
<tr>
<td>

<p>February = 2</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in February</p>

</td>
</tr>
<tr>
<td>

<p>March = 3</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in March</p>

</td>
</tr>
<tr>
<td>

<p>April = 4</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in April</p>

</td>
</tr>
<tr>
<td>

<p>May = 5</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in May</p>

</td>
</tr>
<tr>
<td>

<p>June = 6</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in June</p>

</td>
</tr>
<tr>
<td>

<p>July = 7</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in July</p>

</td>
</tr>
<tr>
<td>

<p>August = 8</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in August</p>

</td>
</tr>
<tr>
<td>

<p>September = 9</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in September</p>

</td>
</tr>
<tr>
<td>

<p>October = 10</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in October</p>

</td>
</tr>
<tr>
<td>

<p>November = 11</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in November</p>

</td>
</tr>
<tr>
<td>

<p>December = 12<br>
<strong>
<br>
</strong></p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates that the event recurs in December<br>
<br>
<br>
</p>

</td>
</tr>
</tbody>
</table>

## RecurrenceDay

Specifies the days of the week. Members might be combined using bitwise operations to specify multiple days. The constants in the `RecurrenceDay` enumeration might be combined bitwise operations to represent any combination of days. It is designed to be used in conjunction with the `RecurrencePattern` class to filter the days of the week for which the recurrence pattern applies.

Consider the following example that demonstrates the basic usage pattern of `RecurrenceDay`. The most common operators used for manipulating bit fields are:

* Bitwise `OR`: Turns a flag on
* Bitwise `XOR`: Toggles a flag
* Bitwise `AND`: Checks, if a flag is turned on
* Bitwise `NOT`: Turns a flag off

 <table cellspacing="0" cellpadding="0" border="0">
<colgroup><col><col><col></colgroup>
<tbody>
<tr>
<td>

<p><strong>Property</strong></p>

</td>
<td>

<p><strong>Type</strong></p>

</td>
<td>

<p><strong>Description</strong></p>

</td>
</tr>
<tr>
<td>

<p>None</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates no day</p>

</td>
</tr>
<tr>
<td>

<p>Sunday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Sunday</p>

</td>
</tr>
<tr>
<td>

<p>Monday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Monday</p>

</td>
</tr>
<tr>
<td>

<p>Tuesday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Tuesday</p>

</td>
</tr>
<tr>
<td>

<p>Wednesday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Wednesday</p>

</td>
</tr>
<tr>
<td>

<p>Thursday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Thursday</p>

</td>
</tr>
<tr>
<td>

<p>Friday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Friday</p>

</td>
</tr>
<tr>
<td>

<p>Saturday</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates Saturday</p>

</td>
</tr>
<tr>
<td>

<p>EveryDay</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates the range from Sunday to Saturday inclusive</p>

</td>
</tr>
<tr>
<td>

<p>WeekDays</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates the range from Monday to Friday inclusive.</p>

</td>
</tr>
<tr>
<td>

<p>WeekendDays</p>

</td>
<td>

<p>Enum</p>

</td>
<td>

<p>Indicates the range from Saturday to Sunday inclusive.</p>

</td>
</tr>
</tbody>
</table>

> success **EXAMPLE**: The following example produces the following results:
>
> * Value: 112 - Friday, WeekendDays
> * Value: 119 - Monday, Tuesday, Wednesday, Friday, WeekendDays
>
> ```C#
> using System;
> using Telerik.Sitefinity.RecurrentRules;
> namespace SitefinityWebApp
> {
>    public class RecurrenceDayExample
>    {
>        static void Main()
>        {
>            // Selects Friday, Saturday and Sunday.
>            RecurrenceDay dayMask = RecurrenceDay.Friday | RecurrenceDay.WeekendDays;
>            PrintSelectedDays(dayMask);
>            // Selects all days, except Thursday.
>            dayMask = RecurrenceDay.EveryDay ^ RecurrenceDay.Thursday;
>            PrintSelectedDays(dayMask);
>        }
>        static void PrintSelectedDays(RecurrenceDay dayMask)
>        {
>            Console.WriteLine("Value: {0,3} - {1}", (int)dayMask, dayMask);
>        }
>    }
> }
> ```
