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

Class CalendarEventBuilder

Builder for constructing CalendarEvent instances.

Inheritance
object
CalendarEventBuilder
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 CalendarEventBuilder

Methods

View Source

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

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

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

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 email

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

Build()

Builds the CalendarEvent.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Organizer(string, string?)

Sets the organizer (ORGANIZER).

Declaration
public CalendarEventBuilder Organizer(string email, string? name = null)
Parameters
Type Name Description
string email

Specifies the email value.

string name

Specifies the name value.

Returns
Type Description
CalendarEventBuilder
View Source

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

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

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

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

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

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

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

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

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

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

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

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

DR-IT Software documentation

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

Generated by DocFX