Navigating the Calendaring Sample Application Source Code

Topic Last Modified: 2007-04-16

Calendaring.frm contains the source code for the Calendaring sample application and is installed in the directory in which the Microsoft Exchange Server 2007 Software Development Kit (SDK) is installed, in the \Samples\Calendaring folder. The following table lists the subprocedures and functions that are relevant to calendaring.

Subprocedure/Function Description

RefreshAppointment()

Updates the appointment with text from the user interface text fields.

OpenCalendarItem(calendarItemUrl As String)

Opens the calendar item located at the URL in the calendarItemURL string.

SaveAppointment()

Saves the appointment to the user's calendar and also sends notification e-mail to the attendees.

SendAppointment()

Sends the appointment to the attendees by using the CalendarMessage object.

ListAttendees()

Returns a list of the attendees for the appointment as a semi-colon delimited string.

AddAttendee(attendeeName As String)

Adds an attendee to the given appointment.

GetMailboxInterface(emailAlias As String)

Gets an interface to the requested user's mailbox.

CreateAppointment(startTime As Date, endTime As Date, subject As String, location As String, textBody As String)

Creates an appointment in memory. Uses the SaveAppointment subprocedure to commit it to the Microsoft Exchange server.

ListAppointments()

Lists all the user's appointments in the CalendarItemListBox list box.

SetRecurrence(frequency As CdoFrequency)

Sets the recurrence pattern for the appointment.

CancelAppointment(calendarItemUrl As String)

Cancels the appointment and sends cancellation messages to the attendees.

RemoveAllAttendees()

Removes all attendees from an appointment.

SetConfiguration()

Sets the Configuration object of the appointment.