Class CalendarEventBuilder
Builder for constructing CalendarEvent instances.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class CalendarEventBuilder
Methods
View SourceAlarm(Action<AlarmBuilder>)
Adds an alarm (VALARM) configured by the specified callback.
Declaration
public CalendarEventBuilder Alarm(Action<AlarmBuilder> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<AlarmBuilder> | configure | Specifies the configure value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
AllDay(bool)
Sets whether this is an all-day event.
Declaration
public CalendarEventBuilder AllDay(bool allDay)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | allDay | The all day used by the operation. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Attendee(Attendee)
Adds an attendee (ATTENDEE).
Declaration
public CalendarEventBuilder Attendee(Attendee attendee)
Parameters
| Type | Name | Description |
|---|---|---|
| Attendee | attendee | Specifies the attendee value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Attendee(string, string?, ParticipationRole?, ParticipationStatus?)
Adds an attendee (ATTENDEE).
Declaration
public CalendarEventBuilder Attendee(string email, string? name = null, ParticipationRole? role = null, ParticipationStatus? status = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Specifies the email value. |
|
| string | name | Specifies the name value. |
| ParticipationRole? | role | Specifies the role value. |
| ParticipationStatus? | status | Specifies the status value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Build()
Builds the CalendarEvent.
Declaration
public CalendarEvent Build()
Returns
| Type | Description |
|---|---|
| CalendarEvent |
Categories(params string[])
Adds categories (CATEGORIES).
Declaration
public CalendarEventBuilder Categories(params string[] categories)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | categories | Specifies the categories value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Classification(Classification)
Sets the classification (CLASS).
Declaration
public CalendarEventBuilder Classification(Classification classification)
Parameters
| Type | Name | Description |
|---|---|---|
| Classification | classification | Specifies the classification value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Comment(string)
Sets the comment (COMMENT).
Declaration
public CalendarEventBuilder Comment(string comment)
Parameters
| Type | Name | Description |
|---|---|---|
| string | comment | Specifies the comment value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Contact(string)
Sets the contact (CONTACT).
Declaration
public CalendarEventBuilder Contact(string contact)
Parameters
| Type | Name | Description |
|---|---|---|
| string | contact | Specifies the contact value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Created(ICalDateTime)
Sets the creation timestamp (CREATED).
Declaration
public CalendarEventBuilder Created(ICalDateTime created)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | created | Specifies the created value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
DateTimeStamp(ICalDateTime)
Sets the last modification timestamp (DTSTAMP).
Declaration
public CalendarEventBuilder DateTimeStamp(ICalDateTime dateTimeStamp)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | dateTimeStamp | The date time stamp used by the operation. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Description(string)
Sets the description (DESCRIPTION).
Declaration
public CalendarEventBuilder Description(string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | description | Specifies the description value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Duration(ICalDuration?)
Sets the duration (DURATION).
Declaration
public CalendarEventBuilder Duration(ICalDuration? duration)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDuration | duration | Specifies the duration value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
End(ICalDateTime)
Sets the end date-time (DTEND).
Declaration
public CalendarEventBuilder End(ICalDateTime end)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | end | Specifies the end value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
ExceptionDate(ICalDateTime)
Adds an exception date (EXDATE).
Declaration
public CalendarEventBuilder ExceptionDate(ICalDateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | date | Specifies the date value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
ExtendedProperty(string, string)
Adds an X-* extension property.
Declaration
public CalendarEventBuilder ExtendedProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
| string | value | The value to process. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Geo(double, double)
Sets the geographic position (GEO).
Declaration
public CalendarEventBuilder Geo(double latitude, double longitude)
Parameters
| Type | Name | Description |
|---|---|---|
| double | latitude | Specifies the latitude value. |
| double | longitude | Specifies the longitude value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
LastModified(ICalDateTime)
Sets the last modification timestamp (LAST-MODIFIED).
Declaration
public CalendarEventBuilder LastModified(ICalDateTime lastModified)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | lastModified | The last modified used by the operation. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Location(string)
Sets the location (LOCATION).
Declaration
public CalendarEventBuilder Location(string location)
Parameters
| Type | Name | Description |
|---|---|---|
| string | location | Specifies the location value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Organizer(Organizer?)
Sets the organizer (ORGANIZER).
Declaration
public CalendarEventBuilder Organizer(Organizer? organizer)
Parameters
| Type | Name | Description |
|---|---|---|
| Organizer | organizer | Specifies the organizer value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Organizer(string, string?)
Sets the organizer (ORGANIZER).
Declaration
public CalendarEventBuilder Organizer(string email, string? name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Specifies the email value. |
|
| string | name | Specifies the name value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Priority(int)
Sets the priority (PRIORITY, 0-9).
Declaration
public CalendarEventBuilder Priority(int priority)
Parameters
| Type | Name | Description |
|---|---|---|
| int | priority | Specifies the priority value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
RecurrenceDate(ICalDateTime)
Adds a recurrence date (RDATE).
Declaration
public CalendarEventBuilder RecurrenceDate(ICalDateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | date | Specifies the date value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
RecurrenceId(ICalDateTime?)
Sets the recurrence identifier (RECURRENCE-ID).
Declaration
public CalendarEventBuilder RecurrenceId(ICalDateTime? recurrenceId)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | recurrenceId | The recurrence id identifier. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
RecurrenceRule(RecurrenceRule?)
Sets the recurrence rule (RRULE).
Declaration
public CalendarEventBuilder RecurrenceRule(RecurrenceRule? rule)
Parameters
| Type | Name | Description |
|---|---|---|
| RecurrenceRule | rule | Specifies the rule value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Resources(params string[])
Adds resources (RESOURCES).
Declaration
public CalendarEventBuilder Resources(params string[] resources)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | resources | Specifies the resources value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Sequence(int)
Sets the revision sequence number (SEQUENCE).
Declaration
public CalendarEventBuilder Sequence(int sequence)
Parameters
| Type | Name | Description |
|---|---|---|
| int | sequence | Specifies the sequence value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Start(ICalDateTime)
Sets the start date-time (DTSTART).
Declaration
public CalendarEventBuilder Start(ICalDateTime start)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | start | Specifies the start value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Status(EventStatus)
Sets the status (STATUS).
Declaration
public CalendarEventBuilder Status(EventStatus status)
Parameters
| Type | Name | Description |
|---|---|---|
| EventStatus | status | Specifies the status value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Summary(string)
Sets the summary (SUMMARY).
Declaration
public CalendarEventBuilder Summary(string summary)
Parameters
| Type | Name | Description |
|---|---|---|
| string | summary | Specifies the summary value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Transparency(Transparency)
Sets the time transparency (TRANSP).
Declaration
public CalendarEventBuilder Transparency(Transparency transparency)
Parameters
| Type | Name | Description |
|---|---|---|
| Transparency | transparency | Specifies the transparency value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Uid(string)
Sets the unique identifier (UID).
Declaration
public CalendarEventBuilder Uid(string uid)
Parameters
| Type | Name | Description |
|---|---|---|
| string | uid | The uid identifier. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |
Url(string)
Sets the URL.
Declaration
public CalendarEventBuilder Url(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | Specifies the url value. |
Returns
| Type | Description |
|---|---|
| CalendarEventBuilder |