Sdílet prostřednictvím


Configuring the Appointment Object

Topic Last Modified: 2006-06-12

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."

Example

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.

See Also

Other Resources

Configuration CoClass