The Enterprise Edition of CountryHawk automatically keeps track of the total number of hits (matches) for each region as you call the GetCountry method. The HitCount property of the RegionStats object returns this total.
Syntax:
hits = regObj.HitCount
Returns:
The total number of hits for the regObj instance.
VB.NET Example:
dim chObj as CountryObj = CountryObj.GetCountry()
dim regObj as RegionObj = RegionObj.GetRegion(chObj)
Response.Write("Total hits for your region is " + regObj.HitCount.ToString())
C# Example:
CountryObj chObj = CountryObj.GetCountry();
RegionObj regObj = RegionObj.GetRegion(chObj);
Response.Write("Total hits for your region is " + regObj.HitCount.ToString());
Note: This property requires the Enterprise Edition of CountryHawk.
See Also: