There is CivicAddress Class but it does not work on my PC
But I get the country with Windows.Devices.Geolocation :
// Add reference to "C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd"
// Add reference to "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll"
using Windows.Devices.Geolocation;
Minimal function :
static async void GetLocationsync()
{
var accessStatus = await Geolocator.RequestAccessAsync();
switch (accessStatus)
{
case GeolocationAccessStatus.Allowed:
Geolocator geolocator = new Geolocator { DesiredAccuracyInMeters = 100 };
Geoposition pos = await geolocator.GetGeopositionAsync();
Console.WriteLine("Country : {0}", pos.CivicAddress.Country);
break;
case GeolocationAccessStatus.Denied:
break;
case GeolocationAccessStatus.Unspecified:
break;
}
}