Class CalendarExtensions
Inheritance
CalendarExtensions
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
Returns
AddParticipantsAsync(CalendarEvent, AppointmentRow[], CancellationToken)
Declaration
public static Task AddParticipantsAsync(this CalendarEvent calEvent, AppointmentRow[] participantRows, CancellationToken cancellationToken = default)
Parameters
Returns
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
GetEmailAddress(Organizer)
Declaration
public static string GetEmailAddress(this Organizer organizer)
Parameters
Type |
Name |
Description |
Organizer |
organizer |
|
Returns
SerializeToString(Calendar)
Declaration
public static string SerializeToString(this Calendar calendar)
Parameters
Type |
Name |
Description |
Calendar |
calendar |
|
Returns
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
Returns
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