SiteConfig Object
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Note
This object is obsolete. Use SiteConfigFreeThreaded instead.
Use this object to do the following:
Create or delete site configuration information
Save any updated site configuration information to the Administration database
Load site configuration information from the Administration database
Import resource configuration data to a site and export resource configuration data from a site
ProgID: |
Commerce.SiteConfig (Externally creatable) |
COM Class Name: |
SiteConfig |
Type Library Name: |
Microsoft Commerce Server Configuration Type Library |
DLL Name: |
MSCSCfg.dll |
Threading Model: |
Apartment |
[C++]
COM Interface Name: |
_SiteConfig |
Interface ID Constant: |
None |
Header File: |
None |
In C++, use the _SiteConfig interface to access the properties and methods of the SiteConfig object.
Methods
Method |
Description |
---|---|
Adds a reference to a global resource so that a site can access that resource. |
|
Creates and writes configuration information for the specified resource to the Administration database. |
|
Deletes configuration information for the specified resource. |
|
Deletes the specified SQL script file from the Administration database. |
|
Writes the specified resource, resource properties, and attributes to the specified file. |
|
Gets a list of Commerce Server applications for the specified site. |
|
Use this method to convert values read from the Fields property, if appropriate, into either a SimpleList object or a variant array. |
|
Gets a dictionary of key/value pairs that denote the attributes of the specified property of the specified resource. |
|
Gets the specified SQL script file from the Administration database. |
|
Reads the specified resource, resource properties, and attributes from the specified file, and writes them to the Commerce Server database. |
|
Loads the site configuration data from the Administration database. |
|
Converts the specified SimpleList object into an array. |
|
Converts values read from the Fields property into an array. |
|
Converts an array into a SimpleList object. |
|
Converts an array into an encoded string that can be written to the Fields property. |
|
Converts a SimpleList object into an encoded string that can be written to the Fields property. |
|
Puts the specified SQL script file into the Administration database. |
|
Saves the site configuration settings to the Administration database. |
Properties
Property |
Description |
---|---|
Returns configuration fields, some of which hold configuration settings of resources. This property is read-write. |
Remarks
The only functions available if you do not have an Administrator role are:
Initialize, GetAppsInSite, SaveConfig, MakeArrayFromSimpleList, MakeArrayFromString, MakeSimpleListFromArray, MakeStringFromArray, and MakeStringFromSimpleList.
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.