GlobalConfig Object
Use this object to accomplish the following:
Create or delete resource configuration information
Save any updated global configuration information to the Administration database
Add a site
Depending on how you add your own custom resource, you should be able to use this object to access configuration settings from the Administration database.
ProgID: | Commerce.GlobalConfig (Externally creatable) |
COM Class Name: | GlobalConfig |
COM Interface Name: | _GlobalConfig |
Interface ID Constant: | None |
Header File: | None |
Type Library Name: | Microsoft Commerce 2000 Configuration Type Library |
DLL Name: | MSCSCfg.dll |
Threading Model: | Apartment |
In C++, use the _GlobalConfig interface to access the properties and methods of the GlobalConfig object.
The single property of the GlobalConfig object is shown in the following table.
Property | Type | Description |
Fields | Fields | Returns group-level configuration data.
This property is read-only. |
The methods of the GlobalConfig object are shown in the following table.
Method | Description |
CreateServiceConfig | Creates and writes configuration information for the specified resource to the Administration database. |
CreateSiteConfig | Creates a site. |
DeleteServiceConfig | Deletes configuration information for the specified resource. |
DeleteSiteConfig | Deletes the specified configuration for the site and all configurations for the associated resources. |
GetIfCollection | Converts values read from the Fields property into appropriate objects such as a SimpleList object or a Variant Array. |
GetResourcePropAttrib | Gets a dictionary of key/value pairs that denote the attributes of the specified property of the specified resource. |
Initialize | Loads the global configuration data from the Administration database. |
MakeArrayFromSimpleList | Converts the specified SimpleList object into an Array. |
MakeArrayFromString | Converts values read from the Fields property into an Array. |
MakeSimpleListFromArray | Converts an Array into a SimpleList object. |
MakeStringFromArray | Converts an Array into an encoded string, which can be written to the Fields property. |
MakeStringFromSimpleList | Converts a SimpleList object into an encoded string, which can be written to the Fields property. |
SaveConfig | Saves the global configuration settings to the Administration database. |
Sites | Returns a list of all of the sites available in the administration data store. |