Count Property (.NET)

 

This property represents the total number of countries defined in your countrynames.properties file. This is also the total number of times an enumerated CountryStats object will return statistical data for.

Syntax:

 count = chStatsObj.Count

Returns:

Returns the total number of countries defined in your countrynames.properties file.

VB.NET Example:

 

dim ctyStats as new CountryStats()

Response.Write("Stats are available for " + ctyStats.Count.ToString())

Response.Write(" different countries.")

C# Example:

 

CountryStats ctyStats = new CountryStats();

Response.Write("Stats are available for " + ctyStats.Count.ToString());

Response.Write(" different countries.");

Note: This property is only available in the Enterprise Edition of CountryHawk.

Note: This property is read-only.