Load Method

Load Method

The Load method loads the specified configuration.

Syntax

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

Parameters

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

Remarks

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.

Example

' 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