• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TimeZoneComponentBuilder

Builder for constructing TimeZoneComponent instances.

Inheritance
object
TimeZoneComponentBuilder
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class TimeZoneComponentBuilder

Constructors

View Source

TimeZoneComponentBuilder(string)

Initializes a new instance of the TimeZoneComponentBuilder class.

Declaration
public TimeZoneComponentBuilder(string type)
Parameters
Type Name Description
string type

The component type (STANDARD or DAYLIGHT).

Methods

View Source

Build()

Builds the TimeZoneComponent.

Declaration
public TimeZoneComponent Build()
Returns
Type Description
TimeZoneComponent
View Source

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
View Source

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
View Source

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
View Source

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
View Source

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
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX