Walter.BOM
GetTwoLetterIsoCountryCode Method
Walter.BOM Assembly > Walter.BOM.Geo Namespace > GeoExtensionMethods Class : GetTwoLetterIsoCountryCode Method
The geographic location for which to obtain the two-letter ISO country code.
Retrieves the two-letter ISO country code associated with the specified GeoLocation.
Syntax
public static string GetTwoLetterIsoCountryCode( 
   GeoLocation location
)

Parameters

location
The geographic location for which to obtain the two-letter ISO country code.

Return Value

A string containing the two-letter ISO country code corresponding to the provided location. If the location does not have a corresponding country code or is not supported, an empty string is returned.
Remarks
This method is essential for applications that need to perform operations based on country-specific standards or data, such as displaying country flags, formatting phone numbers, or setting locale-specific settings. The two-letter ISO country code is a standardized code defined by the International Organization for Standardization (ISO), which represents countries, dependent territories, and special areas of geographical interest.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GeoExtensionMethods Class
GeoExtensionMethods Members