RegionName Property (.NET)

 

The RegionName property returns the region name for which the particular instance of the RegionStats class contains data for. See the section on Defining Regions for more information on how region names are defined and possible return values.

Syntax:

 RegionName = regObj.RegionName

Returns:

The region name for the regObj instance.

VB.NET Example:

 

dim chObj as CountryObj = CountryObj.GetCountry()

dim regObj as RegionObj = RegionObj.GetRegion(chObj)

Response.Write("Name of your region is " + regObj.RegionName)

C# Example:

 

CountryObj chObj = CountryObj.GetCountry();

RegionObj regObj = RegionObj.GetRegion(chObj);

Response.Write("Name of your region is " + regObj.RegionName);

Note: This property requires the Enterprise Edition of CountryHawk.