Class CalendarBuilder
Builder for constructing Calendar instances for writing.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class CalendarBuilder
Methods
View SourceBuild()
Builds the Calendar.
Declaration
public Calendar Build()
Returns
| Type | Description |
|---|---|
| Calendar |
CalendarScale(string?)
Sets the calendar scale (CALSCALE).
Declaration
public CalendarBuilder CalendarScale(string? calendarScale)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarScale | The calendar scale used by the operation. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
Event(Action<CalendarEventBuilder>)
Adds an event (VEVENT) configured by the specified callback.
Declaration
public CalendarBuilder Event(Action<CalendarEventBuilder> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<CalendarEventBuilder> | configure | Specifies the configure value. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
ExtendedProperty(string, string)
Adds an X-* extension property.
Declaration
public CalendarBuilder ExtendedProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
| string | value | The value to process. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
Method(CalendarMethod)
Sets the calendar method (METHOD).
Declaration
public CalendarBuilder Method(CalendarMethod method)
Parameters
| Type | Name | Description |
|---|---|---|
| CalendarMethod | method | Specifies the method value. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
ProductId(string)
Sets the product identifier (PRODID).
Declaration
public CalendarBuilder ProductId(string productId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | productId | The product id identifier. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
TimeZone(Action<VTimeZoneBuilder>)
Adds a timezone (VTIMEZONE) configured by the specified callback.
Declaration
public CalendarBuilder TimeZone(Action<VTimeZoneBuilder> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<VTimeZoneBuilder> | configure | Specifies the configure value. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
Todo(Action<TodoBuilder>)
Adds a to-do (VTODO) configured by the specified callback.
Declaration
public CalendarBuilder Todo(Action<TodoBuilder> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<TodoBuilder> | configure | Specifies the configure value. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |
Version(string)
Sets the iCalendar version (VERSION). Defaults to 2.0.
Declaration
public CalendarBuilder Version(string version)
Parameters
| Type | Name | Description |
|---|---|---|
| string | version | Specifies the version value. |
Returns
| Type | Description |
|---|---|
| CalendarBuilder |