Configuring the Appointment Object

Configuring the Appointment Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Collaboration Data Objects (CDO) Configuration object contains the configuration information needed by other CDO objects and methods. The https://schemas.microsoft.com/cdo/configuration namespace lists the fields defined for the Configuration object.

The sendemailaddress field is required for sending meeting requests and responses. This field should be set to the e-mail address of the user.

You can set other configuration fields, such as the sendusing field, if you need to. If your program creates multiple appointments or messages, you should create a single configuration object and reuse it for each appointment or message. This reduces the overhead involved in creating a new configuration object each time you create a new Appointment or Message object.

The code in the following example demonstrates how to set the configuration object for user12 in the exchange.example.com domain. This example uses the default mailbox store name "MBX."

Visual Basic

Dim Config As New CDO.Configuration
CalendarURL = "file://./backofficestorage/exchange.example.com/MBX/user12/calendar/"

'Set the configuration for calendar messages
Config.Fields(cdoSendEmailAddress) = "user12@exchange.example.com"
Config.Fields("CalendarLocation") = CalendarURL
Config.Fields.Update

CDO automatically gets some configuration information from the computer on which it is running. The information from the computer includes how messages are sent. To control how meeting requests and responses are sent, set the https://schemas.microsoft.com/cdo/configuration/sendusing field.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.