Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Use to send and respond to meeting requests.
IDataSource method | Target argument | Content class |
Open | Web Store item URL | urn:content-classes:calendarmessage |
OpenObject | IRow _Record IStream _Stream IBodyPart |
urn:content-classes:calendarmessage |
SaveTo | Web Store item URL | N/A |
SaveToContainer | Web Store folder URL | N/A |
SaveToObject | IRow _Record IStream _Stream IBodyPart |
N/A |
Because meeting requests are sent and received as messages with MIME body parts containing calendar content, this class accesses full messaging functionality with the IMessage, IBodyPart, and IDataSource interfaces.
The IBodyPart interface acts as the root of the hierarchy of MIME body parts in a message.
The CalendarMessage object encapsulates the meeting request as an e-mail message. It also provides access to the ICalendarParts interface that filters for body parts containing calendar content.
The CalendarMessage object serves the protocol requirements for the organizer, who sends a meeting request, and an attendee, who sends a meeting response. The following steps outline a typical scenario:
In the following code example, user12@exchange.microsoft.com creates a meeting request and sends it to someone@microsoft.com.
Dim iAppt As New Appointment Dim iCalMsg As CalendarMessage Dim Config As New Configuration Dim iAttendee As New Attendee 'Set the configuration fields Config.Fields(cdoSendEmailAddress) = "user12@exchange.microsoft.com" Config.Fields("CalendarLocation") = "file://./backofficestorage/exchange.microsoft.com/MBX/user12/calendar" Config.Fields.Update iAppt.Configuration = Config 'Set the appointment properties iAppt.StartTime = #9/5/1999 12:30:00 PM# iAppt.EndTime = #9/5/1999 1:30:00 PM# iAppt.Subject = "Lunch meeting" iAppt.Location = "Building B Cafeteria" 'Add an attendee Set iAttendee = iAppt.Attendees.Add iAttendee.Address = "someone@microsoft.com" 'Create the calendar message and send it Set iCalMsg = iAppt.CreateRequest iCalMsg.Message.Send