Partilhar via


SiteConfigReadOnly Object

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Note

This object is obsolete. Use CommerceResourceCollection or SiteConfigReadOnlyFreeThreaded instead.

Use this object to load site configuration information from the Administration database.

ProgID:

Commerce.SiteConfigReadOnly (Externally creatable)

COM Class Name:

SiteConfigReadOnly

Type Library Name:

Microsoft Commerce Server Configuration Type Library

DLL Name:

MSCSCfg.dll

Threading Model:

Apartment

[C++]

COM Interface Name:

_SiteConfigReadOnly

Interface ID Constant:

None

Header File:

None

In C++, use the _SiteConfigReadOnly interface to access the properties and methods of the SiteConfigReadOnly object.

Methods

Method

Description

GetAppsInSite

Gets a list of Commerce Server 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.

Initialize

Loads the site configuration data from the Administration database.

MakeArrayFromSimpleList

Converts the specified SimpleList object into an Array.

MakeArrayFromString

Converts values read from 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.

Properties

Property

Description

Fields

Returns configuration settings of the site and the site resources.

This property is read-only.

Remarks

The SiteConfigReadOnly object allows access to more configuration data than does the SiteConfig object. With the SiteConfigReadOnly object, group resource values are returned when you access references to resources. In contrast, with the SiteConfig object, only references to the names of the resources are returned.

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

SiteConfig Object