# IcsComponentExtensions

Typed helpers over the lossless iCalendar component/property model.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[IcsComponentExtensions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsComponentExtensions.cs#L7)

**Modifiers**

static

Typed helpers over the lossless iCalendar component/property model.

## Inheritance

- object
- IcsComponentExtensions

Filter members 

Show inherited

## Methods

`public static ContentLineProperty AddRecurrenceRule(ContentLineComponent component, IcsRecurrenceRule rule)` [#](#method-addrecurrencerule-officeimo-email-contentlinecomponent-officeimo-email-icsrecurrencerule)

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

Adds an RRULE property.

Parameters

**component OfficeIMO.Email.ContentLineComponent required**

**rule OfficeIMO.Email.IcsRecurrenceRule required**

Returns

`ContentLineProperty`

`public static IEnumerable<IcsRecurrenceRule> GetRecurrenceRules(ContentLineComponent component)` [#](#method-getrecurrencerules-officeimo-email-contentlinecomponent)

Parses every direct RRULE property.

Parameters

**component OfficeIMO.Email.ContentLineComponent required**

Returns

`IEnumerable<IcsRecurrenceRule>`

`public static IcsTemporalValue? GetTemporalValue(ContentLineComponent component, string propertyName)` [#](#method-gettemporalvalue-officeimo-email-contentlinecomponent-string)

[IcsComponentExtensions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsComponentExtensions.cs#L7)

Gets the first temporal property with the supplied name.

Parameters

**component OfficeIMO.Email.ContentLineComponent required**

**propertyName string required**

Returns

`IcsTemporalValue?`

`public static ContentLineProperty SetTemporalValue(ContentLineComponent component, string propertyName, IcsTemporalValue value)` [#](#method-settemporalvalue-officeimo-email-contentlinecomponent-string-officeimo-email-icstemporalvalue)

[IcsComponentExtensions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsComponentExtensions.cs#L16)

Creates or replaces one temporal property without resolving TZID through the host OS.

Parameters

**component OfficeIMO.Email.ContentLineComponent required**

**propertyName string required**

**value OfficeIMO.Email.IcsTemporalValue required**

Returns

`ContentLineProperty`

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

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