Share via


AppConfig Object

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

Note

This object is obsolete.

Use this object to retrieve site configuration settings from the site configuration store. Also, use this object to retrieve the names and codes of various countries/regions and states/provinces from the site configuration store.

ProgID:

Commerce.AppConfig (externally creatable)

COM Class Name:

AppCfg

Type Library Name:

Microsoft Commerce Server App Helper Type Library

DLL Name:

AppHelper.dll

Threading Model:

Both

COM Interface Name:

IAppCfg

Interface ID Constant:

IID_IAppCfg

[C++] In C++, use the IAppCfg interface to access the methods of the AppConfig object.

Methods

Method

Description

DecodeStatusCode

Decodes the specified status code.

GetCountryCodeFromCountryName

Gets the country/region code corresponding to the specified country/region name.

GetCountryNameFromCountryCode

Gets the country/region name corresponding to the specified country/region code.

GetCountryNamesList

Gets an alphabetical list of the country/region names that are in the site configuration database.

GetOptionsDirectory

Retrieves a Dictionary object that contains the site configuration information.

GetRegionCodeFromCountryCodeAndRegionName

Gets a string that contains the state/province code for the specified country/region code and state/province name.

IAppCfg::GetRegionNameFromCountryCodeAndRegionCode Method

Gets the name of the state/province associated with the specified country/region code and state/province code.

GetRegionNamesListFromCountryCode

Retrieves an alphabetical list of state/province names associated with a specified country/region code.

Initialize

Initializes an AppConfig object.

RefreshCache

Refreshes the cache associated with the AppConfig object.

Remarks

This object is usually created once and initialized in the Global.asa file, for performance reasons. An instance of it is stored in the Application object and used on ASP pages as necessary.

The following example illustrates these steps:

Dim oAppConfig
Set oAppConfig = Server.CreateObject("Commerce.AppConfig")
Set Application("MSCSAppCfg") = oAppConfig

[C++] Country/region codes may not be the same as ISO country/region codes, depending on what values you add by using the Commerce Server Marketing Manager.

[Visual Basic] Country/region codes may not be the same as ISO country/region codes, depending on what values you add by using the Commerce Server Marketing Manager

See Also

Other Resources

COM Object Reference