# ProjectRecurrenceRule

Finite Gregorian recurrence input. Expansion retains local wall time, skips nonexistent month days, and never reads a native Project recurrence rule.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectRecurrenceRule.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L27)

**Modifiers**

sealed

Finite Gregorian recurrence input. Expansion retains local wall time, skips nonexistent month days, and never reads a native Project recurrence rule. Working calendars are applied later by scheduling.

## Inheritance

- object
- ProjectRecurrenceRule

Filter members 

Show inherited

## Constructors

`public ProjectRecurrenceRule()` [#](#constructor-ctor)

[ProjectRecurrenceRule.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L27)

## Methods

`public IReadOnlyList<DateTime> Expand(int maxCalendarDays = 36600, CancellationToken cancellationToken = default)` [#](#method-expand-int32-threading-cancellationtoken)

[ProjectRecurrenceRule.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L45)

Expands completely or fails without a partial result. MaxCalendarDays bounds the search, including dates skipped by the pattern.

Parameters

**maxCalendarDays int = 36600 optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<DateTime>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public DateTime Start { get; set; }` [#](#property-start)

[ProjectRecurrenceRule.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L23)

First eligible local date and time; its period anchors the interval.

`public ProjectRecurrenceFrequency Frequency { get; set; }` [#](#property-frequency)

[ProjectRecurrenceRule.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L25)

Daily, weekly, monthly or yearly pattern.

`public int Interval { get; set; }` [#](#property-interval)

[ProjectRecurrenceRule.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L27)

Positive period stride.

`public int Count { get; set; }` [#](#property-count)

[ProjectRecurrenceRule.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L29)

Required finite number of occurrences, from 1 through 100000.

`public IList<DayOfWeek> DaysOfWeek { get; }` [#](#property-daysofweek)

[ProjectRecurrenceRule.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L31)

Weekly selections. Empty selects Start's weekday. Other frequencies require an empty list.

`public DayOfWeek FirstDayOfWeek { get; set; }` [#](#property-firstdayofweek)

[ProjectRecurrenceRule.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L33)

Weekly period boundary, Monday by default.

`public int? DayOfMonth { get; set; }` [#](#property-dayofmonth)

[ProjectRecurrenceRule.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L35)

Monthly/yearly day number. Null uses Start's day when no ordinal weekday is selected.

`public int? Month { get; set; }` [#](#property-month)

[ProjectRecurrenceRule.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L37)

Yearly month number. Null uses Start's month.

`public DayOfWeek? WeekDay { get; set; }` [#](#property-weekday)

[ProjectRecurrenceRule.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L39)

Monthly/yearly ordinal weekday, used together with WeekOrdinal.

`public int? WeekOrdinal { get; set; }` [#](#property-weekordinal)

[ProjectRecurrenceRule.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Scheduling/ProjectRecurrenceRule.cs#L41)

1 through 5 or -1 for the last matching weekday. Missing fifth weekdays are skipped.

<!-- PowerForge markdown artifact sha256:F44A2A788185F437CB4D06082D486D404C7D007E2E5417D9EF338C5A3E69F022 -->
