SiteConfigReadOnly Object

Ee825928.c++_on(en-US,CS.10).gifEe825928.vb_off(en-US,CS.10).gif

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 2000 Configuration Type Library
DLL Name:   MSCSCfg.dll
Threading Model:   Apartment

The single property of the SiteConfigReadOnly object is shown in the following table.

Property Type Description
Fields Fields Returns configuration settings of the site and the site resources.

This property is read-only.

The methods of the SiteConfigReadOnly object are shown in the following table.

Method Description
GetAppsInSite Gets a list of Commerce Server 2000 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.

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

Configuration Objects

Integrating Cutom Resources

GlobalConfigObject

SiteConfig Object


All rights reserved.