Поделиться через


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

AddRefToGroupComponent

Adds a reference to a global resource so that a site can access that resource.

CreateComponentConfig

Creates and writes configuration information for the specified resource to the Administration database.

DeleteComponentConfig

Deletes configuration information for the specified resource.

DeleteSQLScript

Deletes the specified SQL script file from the Administration database.

ExportResource

Writes the specified resource, resource properties, and attributes to the specified file.

GetAppsInSite

Gets a list of Commerce Server applications for the specified site.

GetIfCollection

Use this method to convert values read from the Fields property, if appropriate, into either 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.

GetSQLScript

Gets the specified SQL script file from the Administration database.

ImportResource

Reads the specified resource, resource properties, and attributes from the specified file, and writes them to the Commerce Server database.

Initialize

Loads the site 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 that can be written to the Fields property.

MakeStringFromSimpleList

Converts a SimpleList object into an encoded string that can be written to the Fields property.

PutSQLScript

Puts the specified SQL script file into the Administration database.

SaveConfig

Saves the site configuration settings to the Administration database.

Properties

Property

Description

Fields

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.

See Also

Other Resources

Configuration Objects

GlobalConfig Object

SiteConfigReadOnly Object