# IcsRecurrenceRule

Parsed recurrence rule that retains unknown rule parts in source order.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[IcsRecurrenceRule.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L19)

**Modifiers**

sealed

Parsed recurrence rule that retains unknown rule parts in source order.

## Inheritance

- object
- IcsRecurrenceRule

## Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Extension method [ContentLineComponent.GetRecurrenceRules](/api/email/officeimo-email-contentlinecomponent/#extension-getrecurrencerules-officeimo-email-contentlinecomponent)
- Method [IcsComponentExtensions.GetRecurrenceRules](/api/email/officeimo-email-icscomponentextensions/#method-getrecurrencerules-officeimo-email-contentlinecomponent)
- Method [IcsRecurrenceRule.Parse](/api/email/officeimo-email-icsrecurrencerule/#method-parse-string)
- Property [OutlookRecurrenceIcsExportResult.Rule](/api/email/officeimo-email-outlookrecurrenceicsexportresult/#property-rule)

### Accepted by parameters 3

- Extension method [ContentLineComponent.AddRecurrenceRule](/api/email/officeimo-email-contentlinecomponent/#extension-addrecurrencerule-officeimo-email-contentlinecomponent-officeimo-email-icsrecurrencerule) parameter `rule`
- Method [IcsComponentExtensions.AddRecurrenceRule](/api/email/officeimo-email-icscomponentextensions/#method-addrecurrencerule-officeimo-email-contentlinecomponent-officeimo-email-icsrecurrencerule) parameter `rule`
- Method [OutlookRecurrenceIcsConverter.Import](/api/email/officeimo-email-outlookrecurrenceicsconverter/#method-import-officeimo-email-icsrecurrencerule-officeimo-email-outlookrecurrenceicsimportoptions) parameter `rule`

Filter members 

Show inherited

## Constructors

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

[IcsRecurrenceRule.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L19)

## Methods

`public string? GetValue(string name)` [#](#method-getvalue-string)

[IcsRecurrenceRule.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L62)

Returns the first matching rule part value.

Parameters

**name string required**

Returns

`string?`

`public static IcsRecurrenceRule Parse(string value)` [#](#method-parse-string)

[IcsRecurrenceRule.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L44)

Parses an RRULE value without discarding unknown parts.

Parameters

**value string required**

Returns

`IcsRecurrenceRule`

`public void SetValue(string name, string? value)` [#](#method-setvalue-string-string)

[IcsRecurrenceRule.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L67)

Replaces a rule part, or removes it when value is null.

Parameters

**name string required**

**value string? required**

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

[IcsRecurrenceRule.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L79)

Serializes the recurrence rule in its current part order.

Returns

`string`

## 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`

## Properties

`public IList<IcsRecurrencePart> Parts { get; }` [#](#property-parts)

[IcsRecurrenceRule.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L22)

Ordered recurrence rule parts.

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

[IcsRecurrenceRule.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L26)

FREQ value.

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

[IcsRecurrenceRule.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L32)

COUNT value when present and valid.

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

[IcsRecurrenceRule.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsRecurrenceRule.cs#L38)

INTERVAL value when present and valid.

<!-- PowerForge markdown artifact sha256:1C7FA24ACCB1117140469E4871D3D6F3B8F55BD1228C50B6243B9624855AD2CA -->
