Load Method

Exchange Server 2003

Topic Last Modified: 2004-06-08

The Load method loads the specified configuration.

Sub Load(ByVal LoadFrom as CdoConfigSource, [ByVal URL as String])
HRESULT Load(CdoConfigSourceLoadFrom, BSTR URL);

LoadFrom

Specifies which configuration to load. It can be any value from the following CdoConfigSource enumeration

Name Value Description

cdoSourceDefaults

-1

Load all applicable default field values.

cdoSourceIIS

1

Load any default values from Microsoft Internet Information Server (IIS).

cdoSourceOutlookExpress

2

Load default values from Microsoft® Outlook® Express.

URL

This parameter is ignored and reserved for future use.

Use the Load method to explicitly load (or reload) default configuration settings. These settings can include Simple Mail Transport Protocol (SMTP) service settings or Outlook Express settings. The availability of these configuration settings is dependent on the software installed on the local computer.

' Reference to Microsoft ActiveX Data Objects 2.5 Library
' Reference to Microsoft CDO for Windows 2000 Library
Dim iConf as New CDO.Configuration
iConf.Load cdoSourceIIS
...
Dim iMsg as New CDO.Message
Set iMsg.Configuration = iConf
Show: