New to Telerik UI for WinFormsStart a free 30-day trial

Represents a hourly recurrence rule.

Definition

Constructors

Initializes a new instance of the HourlyRecurrenceRule class.

C#
public HourlyRecurrenceRule()

Initializes a new instance of the HourlyRecurrenceRule class.

C#
public HourlyRecurrenceRule(DateTime start, DateTime end, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

intervalint

The interval of the recurrence rule.

countint

The maximum number of occurrences.

Initializes a new instance of the HourlyRecurrenceRule class.

C#
public HourlyRecurrenceRule(DateTime start, DateTime end, int interval)
Parameters:startDateTime

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the HourlyRecurrenceRule class.

C#
public HourlyRecurrenceRule(DateTime start, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

intervalint

The interval of the recurrence rule.

countint

The maximum number of occurrences.

Initializes a new instance of the HourlyRecurrenceRule class.

C#
public HourlyRecurrenceRule(DateTime start, int interval)
Parameters:startDateTime

The start of the recurrence rule.

intervalint

The interval of the recurrence rule.

Properties

Gets the type of the recurrence rule.

C#
public override RecurrenceType Frequency { get; }
Property Value:

The type of the recurrence rule.

Overrides: RecurrenceRule.Frequency

Methods

C#
protected override RecurrenceRule CreateInstance()
Returns:

RecurrenceRule

Overrides: RecurrenceRule.CreateInstance()

C#
public override bool Equals(RecurrenceRule other)
Parameters:otherRecurrenceRuleReturns:

bool

Overrides: RecurrenceRule.Equals(RecurrenceRule)

Gets the occurrence start for given a occurrence index.

C#
public override DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters:indexint

The index.

startDateDateTime

The start of the recurring series.

dateTimeFormatDateTimeFormatInfo

The date time format.

Returns:

DateTime

Overrides: RecurrenceRule.GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)

C#
public override bool IntersectsWithException(DateTime eventStart, TimeSpan eventDuration, IEvent exception)
Parameters:eventStartDateTimeeventDurationTimeSpanexceptionIEventReturns:

bool

Overrides: RecurrenceRule.IntersectsWithException(DateTime, TimeSpan, IEvent)