Class TimeZoneComponent
A timezone sub-component (RFC 5545 §3.6.5), either STANDARD or
DAYLIGHT, defining the offset and recurrence rules for a period.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class TimeZoneComponent
Constructors
View SourceTimeZoneComponent(string, ICalDateTime, UtcOffset, UtcOffset, RecurrenceRule?, string?)
Initializes a new instance of the TimeZoneComponent class.
Declaration
public TimeZoneComponent(string type, ICalDateTime start, UtcOffset offsetFrom, UtcOffset offsetTo, RecurrenceRule? recurrenceRule, string? timeZoneName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | |
| ICalDateTime | start | |
| UtcOffset | offsetFrom | |
| UtcOffset | offsetTo | |
| RecurrenceRule | recurrenceRule | |
| string | timeZoneName |
Properties
View SourceOffsetFrom
Gets the offset that is in use before this sub-component (TZOFFSETFROM).
Declaration
public UtcOffset OffsetFrom { get; }
Property Value
| Type | Description |
|---|---|
| UtcOffset |
OffsetTo
Gets the offset that is in use during this sub-component (TZOFFSETTO).
Declaration
public UtcOffset OffsetTo { get; }
Property Value
| Type | Description |
|---|---|
| UtcOffset |
RecurrenceRule
Gets the recurrence rule for this sub-component (RRULE), or null.
Declaration
public RecurrenceRule? RecurrenceRule { get; }
Property Value
| Type | Description |
|---|---|
| RecurrenceRule |
Start
Gets the start date-time of this sub-component.
Declaration
public ICalDateTime Start { get; }
Property Value
| Type | Description |
|---|---|
| ICalDateTime |
TimeZoneName
Gets the timezone name (TZNAME), or null if not specified.
Declaration
public string? TimeZoneName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Type
Gets the component type (STANDARD or DAYLIGHT).
Declaration
public string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |