Back to Devexpress

IRecurrenceInfo.Type Property

corelibraries-devexpress-dot-xtrascheduler-dot-irecurrenceinfo-f0ba0626.md

latest7.2 KB
Original Source

IRecurrenceInfo.Type Property

Gets or sets the time base for the frequency of the appointment occurrences.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
RecurrenceType Type { get; set; }
vb
Property Type As RecurrenceType

Property Value

TypeDescription
RecurrenceType

A RecurrenceType enumeration value that specifies the recurrence frequency type.

|

Available values:

NameDescription
Daily

The recurring appointment reoccurs on a daily base.

| | Weekly |

The recurring appointment reoccurs on a weekly base.

| | Monthly |

The recurring appointment reoccurs on a monthly base.

| | Yearly |

The recurring appointment reoccurs on an yearly base.

| | Minutely |

The recurring appointment reoccurs on a minute base.

| | Hourly |

The recurring appointment reoccurs on an hourly base.

|

Remarks

The Type property specifies the basis for the corresponding appointment’s recurrence pattern used to calculate the appointment occurrence. There are six types of recurrence available: minutely, hourly, daily, weekly, monthly, yearly. The RecurrenceType enumeration lists all of them. The frequency applied to the time base specified by the Type property can be set via the IRecurrenceInfo.Periodicity property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Type property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-create-recurrent-appointments-in-code/CS/RecurrenceExamples/MainWindow.xaml.cs#L38

csharp
AppointmentItem apt1 = CreateAppointmentPattern("Every 10 minutes. Five occurrences.", 0);
apt1.RecurrenceInfo.Type = RecurrenceType.Minutely;
apt1.RecurrenceInfo.Start = apt1.Start;

winforms-scheduler-sync-with-ews/CS/EWSSyncExample/ExchangeExampleForm.cs#L19

csharp
apt.RecurrenceInfo.Type = DevExpress.XtraScheduler.RecurrenceType.Daily;
apt.RecurrenceInfo.Periodicity = 1;

report-server-how-to-manage-scheduled-jobs-from-a-windows-forms-application/CS/ScheduledTasksAPIClientDemo/SchedulerJobViewerForm.cs#L198

csharp
using (var apt = DevExpress.XtraScheduler.Compatibility.StaticAppointmentFactory.CreateAppointment(AppointmentType.Pattern)) {
    apt.RecurrenceInfo.Type = RecurrenceType.Daily;
    apt.RecurrenceInfo.Start = scheduledJob.StartDate;

winforms-scheduler-recurrence-series-occurrencecalculator/CS/OccurrenceCalculatorSample/Form1.cs#L30

csharp
apt.End = apt.Start.AddHours(3);
apt.RecurrenceInfo.Type = RecurrenceType.Daily;
apt.RecurrenceInfo.Start = apt.Start;

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L97

csharp
aptPattern.RecurrenceInfo.Type = RecurrenceType.Daily;
aptPattern.RecurrenceInfo.Periodicity = 2;

wpf-scheduler-create-recurrent-appointments-in-code/VB/RecurrenceExamples/MainWindow.xaml.vb#L38

vb
Dim apt1 As AppointmentItem = CreateAppointmentPattern("Every 10 minutes. Five occurrences.", 0)
apt1.RecurrenceInfo.Type = RecurrenceType.Minutely
apt1.RecurrenceInfo.Start = apt1.Start

winforms-scheduler-sync-with-ews/VB/EWSSyncExample/ExchangeExampleForm.vb#L21

vb
apt.RecurrenceInfo.Type = DevExpress.XtraScheduler.RecurrenceType.Daily
apt.RecurrenceInfo.Periodicity = 1

report-server-how-to-manage-scheduled-jobs-from-a-windows-forms-application/VB/ScheduledTasksAPIClientDemo/SchedulerJobViewerForm.vb#L205

vb
Using apt = DevExpress.XtraScheduler.Compatibility.StaticAppointmentFactory.CreateAppointment(AppointmentType.Pattern)
    apt.RecurrenceInfo.Type = RecurrenceType.Daily
    apt.RecurrenceInfo.Start = scheduledJob.StartDate

winforms-scheduler-recurrence-series-occurrencecalculator/VB/OccurrenceCalculatorSample/Form1.vb#L28

vb
apt.End = apt.Start.AddHours(3)
apt.RecurrenceInfo.Type = RecurrenceType.Daily
apt.RecurrenceInfo.Start = apt.Start

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L99

vb
aptPattern.RecurrenceInfo.Type = RecurrenceType.Daily
aptPattern.RecurrenceInfo.Periodicity = 2

See Also

IRecurrenceInfo Interface

IRecurrenceInfo Members

DevExpress.XtraScheduler Namespace