GetRegionCodes Method

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

Returns the list of configured region codes.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function GetRegionCodes As RegionCodeDataSet
'Usage
Dim instance As OrderContext
Dim returnValue As RegionCodeDataSet

returnValue = instance.GetRegionCodes()
public RegionCodeDataSet GetRegionCodes()
public:
RegionCodeDataSet^ GetRegionCodes()
public function GetRegionCodes() : RegionCodeDataSet

Return Value

Type: Microsoft.CommerceServer.Orders..::.RegionCodeDataSet
A RegionCodeDataSet containing country/region and state codes.

Remarks

Returns country/region and state code from the RegionCodes table. Region codes are stored in the database table named RegionCodes in the transaction configuration database. GetRegionCodes caches region codes, and returns codes from the cache if the OrdersConfiguration cache is configured. GetRegionCodes queries the database only when the cache is not configured.

Permissions

See Also

Reference

OrderContext Class

OrderContext Members

Microsoft.CommerceServer.Runtime.Orders Namespace