Load Method

Load Method

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.

Loads the specified configuration.

Applies To

IConfiguration Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Sub Load
(
    LoadFrom As CdoConfigSource,     ByVal [URL As String]
)

[C++]HRESULT Load (     CdoConfigSource LoadFrom,     BSTR URL );

Parameters

  • LoadFrom
    Specifies what configuration to load. Can be any value from the following CdoConfigSource Enum.

    Name Value Description
    cdoSourceDefaults -1 Load all applicable default field values.
    cdoSourceIIS 1 Load any default values from Microsoft Internet Information Services (IIS).
    cdoSourceOutlookExpress 2 Load default values from Microsoft Outlook Express.
  • URL
    This parameter is ignored and reserved for future use.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Use the Load method to explicitly load (or re-load) default configuration settings. These settings can include SMTP service settings and/or Outlook Express settings. The availability of these configuration settings is dependent on the local installed software.

Example

Dim iConf as New CDO.Configuration iConf.Load cdoSourceIIS ... Dim iMsg as New CDO.Message Set iMsg.Configuration = iConf

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.