Class TimeZoneComponentBuilder
Builder for constructing TimeZoneComponent instances.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class TimeZoneComponentBuilder
Constructors
View SourceTimeZoneComponentBuilder(string)
Initializes a new instance of the TimeZoneComponentBuilder class.
Declaration
public TimeZoneComponentBuilder(string type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | The component type ( |
Methods
View SourceBuild()
Builds the TimeZoneComponent.
Declaration
public TimeZoneComponent Build()
Returns
| Type | Description |
|---|---|
| TimeZoneComponent |
OffsetFrom(UtcOffset)
Sets the offset that is in use before this sub-component (TZOFFSETFROM).
Declaration
public TimeZoneComponentBuilder OffsetFrom(UtcOffset offset)
Parameters
| Type | Name | Description |
|---|---|---|
| UtcOffset | offset | The offset within the data. |
Returns
| Type | Description |
|---|---|
| TimeZoneComponentBuilder |
OffsetTo(UtcOffset)
Sets the offset that is in use during this sub-component (TZOFFSETTO).
Declaration
public TimeZoneComponentBuilder OffsetTo(UtcOffset offset)
Parameters
| Type | Name | Description |
|---|---|---|
| UtcOffset | offset | The offset within the data. |
Returns
| Type | Description |
|---|---|
| TimeZoneComponentBuilder |
RecurrenceRule(RecurrenceRule?)
Sets the recurrence rule.
Declaration
public TimeZoneComponentBuilder RecurrenceRule(RecurrenceRule? rule)
Parameters
| Type | Name | Description |
|---|---|---|
| RecurrenceRule | rule | Specifies the rule value. |
Returns
| Type | Description |
|---|---|
| TimeZoneComponentBuilder |
Start(ICalDateTime)
Sets the start date-time.
Declaration
public TimeZoneComponentBuilder Start(ICalDateTime start)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | start | Specifies the start value. |
Returns
| Type | Description |
|---|---|
| TimeZoneComponentBuilder |
TimeZoneName(string?)
Sets the timezone name (TZNAME).
Declaration
public TimeZoneComponentBuilder TimeZoneName(string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
Returns
| Type | Description |
|---|---|
| TimeZoneComponentBuilder |