SiteConfig Class (PIA)

Use this object to accomplish 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

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 2002 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 System.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 2002 database.
Initialize Loads the site configuration data from the Administration database.
MakeArrayFromSimpleList Converts the specified SimpleList object into a System.Array.
MakeArrayFromString Converts values read from the Fields property into a System.Array.
MakeSimpleListFromArray Converts a System.Array into a SimpleList object.
MakeStringFromArray Converts a System.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 Type Description
Fields ADODB26Lib.Fields Returns configuration fields, some of which hold configuration settings of resources.

Remarks

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.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_mscscfg (in cs_mscscfg.dll)

See Also

Configuration Objects

Integrating Custom Resources

GlobalConfig Class

SiteConfigReadOnly Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.