Share via


AppConfig.GetCountryNamesList

Ee783810.c++_on(en-US,CS.10).gifEe783810.vb_off(en-US,CS.10).gif

Use this method to get an alphabetical list of the country/region names that are in the site configuration database.

Definition

Function GetCountryNamesList() As Object

Parameters

None.

Return Values

If this method completes successfully, it returns a reference to a SimpleList object. This object contains an alphabetical list of country/region names.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

Country/region codes and country/region names may be set in Commerce Server Business Desk.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' oAppConfig is a Commerce.AppConfig object
' listCountries is a SimpleList object
Set listCountries = oAppConfig.GetCountryNamesList()
For Each sCountry in listCountry
Response.Write sCountry
Next

See Also

AppConfig Object

AppConfig.GetCountryCodeFromCountryName

Table of Country/Region Names and Codes


All rights reserved.