CountryToStringToString Method (Country) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets a well-formatted name for any given
Country
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static string ToString(
Country country
)
Public Shared Function ToString (
country As Country
) As String
Parameters
- country
- Type: Telogis.GeoBaseCountry
The Country to get name for
Return Value
Type:
StringA string containing the Country name eg "Trinidad and Tobago"
Remarks
It is mostly possible to use the ToString() method of the Country enum, but for display purposes this
is not suitable, as some countries like "Bosnia and Herzegovina" have an enum ToString of "BosniaAndHerzegovina".
In all cases this method will return the country correctly, ie "Bosnia and Herzegovina".
See Also