Walter.BOM
TryGetCountryName Method
Walter.BOM Assembly > Walter.BOM.Geo Namespace > GeoLocationMapping Class : TryGetCountryName Method
the location to query
the display name or an empty string if not found
Tries to get the country name for a GeoLocation, will fail if the location is unknown or a region
Syntax
public static bool TryGetCountryName( 
   GeoLocation location,
   out string name
)

Parameters

location
the location to query
name
the display name or an empty string if not found

Return Value

True if found, false if not
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

GeoLocationMapping Class
GeoLocationMapping Members
GetCountryName(GeoLocation) Method
LocationTable Property