GetHostNamesLicenses method

Returns the number of host licenses acquired.

Syntax

nHostLicenses = Server.GetHostNamesLicenses()

Return value

The number of additional host licenses acquired as a numerical value. Each AFP license includes three host names. Additional host names can be acquired by way of host licenses. Server.GetHostNameLicenses() returns the number of these additionally acquired host licenses. If 2 is returned, this indicates that a total of five host names are available. Without additional host licenses the number returned will be zero.

The unlimited version will return 65,000. This is the maximum number of host names that the regular version can process from a technical aspect. This is therefore the maximum number of host names you can acquire. The unlimited AFP version can administer an unlimited number of host names. Ordinarily, this value is sufficient for comparisons; if, however, you need a more precise differentiation, use the function Server.IsUnlimited().