Platform SDK: CDO 1.2.1

Retrieving Configuration Information

Everything that you store using LoadConfiguration can later be retrieved through the ConfigParameter property of the RenderingApplication object because all this information, whether originally from the registry or from the Microsoft Exchange directory service, is mapped into the same table. You use ConfigParameter by passing a single parameter, called parameter, to specify the configuration value you want to retrieve. For example,

objRendApp.ConfigParameter("Published Public Folders")
 

returns the published public folder shortcuts. Because this information is stored in the registry by name, you can store additional application-specific information in the registry key (with LoadConfiguration) and retrieve it later when you need it, using the RenderingApplication object. For example, the following call retrieves the value for the Microsoft Exchange Server saved previously in a registry entry called Server:

bstrExchServer = objRenderApp.ConfigParameter("Server")