The RegionCode property returns the region code for which the particular instance of the RegionStats class contains data for. The return value is always in lowercase. See the section on Defining Regions for more information on how region codes are defined and possible return values.
Note that the RegionCode property of the RegionObj class will match the RegionCode property of the RegionStats object that the RegionObj contains data for. For example, the instance of the RegionStats class for the United States will contain a RegionCode of "northamercia" by default. You can then use this code as the key to find the matching instance of the RegionStats object associated with "northamerica".
Syntax:
RegionCode = regObj.RegionCode
Returns:
The region code for the regObj instance.
VB.NET Example:
dim chObj as CountryObj = CountryObj.GetCountry()
dim regObj as RegionObj = RegionObj.GetRegion(chObj)
Response.Write("Region code for your region is " + regObj.RegionCode)
C# Example:
CountryObj chObj = CountryObj.GetCountry();
RegionObj regObj = RegionObj.GetRegion(chObj);
Response.Write("Region code for your region is " + regObj.RegionCode);
Note: This property requires the Enterprise Edition of CountryHawk.
See Also: