Show / Hide Table of Contents

Class CalendarExtensions

Inheritance
object
CalendarExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Util
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class CalendarExtensions

Methods

AddParticipantsAsync(Calendar, AppointmentRow[], CancellationToken)

Declaration
public static Task AddParticipantsAsync(this Calendar calendar, AppointmentRow[] participantRows, CancellationToken cancellationToken = default)
Parameters
Type Name Description
Calendar calendar
AppointmentRow[] participantRows
CancellationToken cancellationToken
Returns
Type Description
Task

AddParticipantsAsync(CalendarEvent, AppointmentRow[], CancellationToken)

Declaration
public static Task AddParticipantsAsync(this CalendarEvent calEvent, AppointmentRow[] participantRows, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CalendarEvent calEvent
AppointmentRow[] participantRows
CancellationToken cancellationToken
Returns
Type Description
Task

ClearParticipants(Calendar, bool, params int[])

Declaration
public static void ClearParticipants(this Calendar calendar, bool preserveOrganizerAttendee = true, params int[] personIds)
Parameters
Type Name Description
Calendar calendar
bool preserveOrganizerAttendee
int[] personIds

ClearParticipants(CalendarEvent, bool, params int[])

Declaration
public static void ClearParticipants(this CalendarEvent calEvent, bool preserveOrganizerAttendee = true, params int[] personIds)
Parameters
Type Name Description
CalendarEvent calEvent
bool preserveOrganizerAttendee
int[] personIds

CreateEmail(Calendar, MailEnvelope, CalMethod, string, string)

Declaration
public static MailItem CreateEmail(this Calendar calendar, MailEnvelope envelope, CalMethod method, string subjectPrefix = null, string description = null)
Parameters
Type Name Description
Calendar calendar
MailEnvelope envelope
CalMethod method
string subjectPrefix
string description
Returns
Type Description
MailItem

CreateEmailAttachment(Calendar)

Declaration
public static MailAttachment CreateEmailAttachment(this Calendar calendar)
Parameters
Type Name Description
Calendar calendar
Returns
Type Description
MailAttachment

CreateOrganizerEnvelope(CalendarEvent)

Declaration
public static MailEnvelope CreateOrganizerEnvelope(this CalendarEvent calendarEvent)
Parameters
Type Name Description
CalendarEvent calendarEvent
Returns
Type Description
MailEnvelope

GetEmailAddress(Attendee)

Declaration
public static string GetEmailAddress(this Attendee attendee)
Parameters
Type Name Description
Attendee attendee
Returns
Type Description
string

GetEmailAddress(Organizer)

Declaration
public static string GetEmailAddress(this Organizer organizer)
Parameters
Type Name Description
Organizer organizer
Returns
Type Description
string

SerializeToString(Calendar)

Declaration
public static string SerializeToString(this Calendar calendar)
Parameters
Type Name Description
Calendar calendar
Returns
Type Description
string

SetAllDateTimesFromAppointment(CalendarEvent, AppointmentRow)

All times are "normalized" to UTC+0.

Declaration
public static void SetAllDateTimesFromAppointment(this CalendarEvent calEvent, AppointmentRow appointment)
Parameters
Type Name Description
CalendarEvent calEvent
AppointmentRow appointment

SetCreatedFromAppointment(CalendarEvent, AppointmentRow)

Declaration
public static void SetCreatedFromAppointment(this CalendarEvent calEvent, AppointmentRow appointment)
Parameters
Type Name Description
CalendarEvent calEvent
AppointmentRow appointment

SetEndFromAppointment(CalendarEvent, AppointmentRow)

Declaration
public static void SetEndFromAppointment(this CalendarEvent calEvent, AppointmentRow appointment)
Parameters
Type Name Description
CalendarEvent calEvent
AppointmentRow appointment

SetLastModifiedFromAppointment(CalendarEvent, AppointmentRow)

Declaration
public static void SetLastModifiedFromAppointment(this CalendarEvent calEvent, AppointmentRow appointment)
Parameters
Type Name Description
CalendarEvent calEvent
AppointmentRow appointment

SetRecurrenceId(CalendarEvent, AppointmentRow, DateTime)

Sets the RecurrenceId of the CalendarEvent, combining the date-component of the appointment's DoBy, and the value of recurrenceIdTimeComponent 'stime-component.

Declaration
public static void SetRecurrenceId(this CalendarEvent calendarEvent, AppointmentRow appointmentRow, DateTime recurrenceIdTimeComponent)
Parameters
Type Name Description
CalendarEvent calendarEvent
AppointmentRow appointmentRow
DateTime recurrenceIdTimeComponent

SetRecurrenceRuleAsync(CalendarEvent, RecurrenceRuleRow, CancellationToken)

Declaration
public static Task SetRecurrenceRuleAsync(this CalendarEvent calEvent, RecurrenceRuleRow recurrenceRuleRow, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CalendarEvent calEvent
RecurrenceRuleRow recurrenceRuleRow
CancellationToken cancellationToken
Returns
Type Description
Task

SetStartFromAppointment(CalendarEvent, AppointmentRow)

Declaration
public static void SetStartFromAppointment(this CalendarEvent calEvent, AppointmentRow appointment)
Parameters
Type Name Description
CalendarEvent calEvent
AppointmentRow appointment

ToUtf8ByteStream(Calendar)

Returns the calendar as a byte array, encoded in UTF8. Special handling of UTF8-BOM.

Declaration
public static byte[] ToUtf8ByteStream(this Calendar calendar)
Parameters
Type Name Description
Calendar calendar
Returns
Type Description
byte[]
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top