CountryRegionInfo.FriendlyName Property
CountryRegionInfo.FriendlyName Property
The short name of a country/region. For the official name, use the OfficialName property.
Public FriendlyName As System.String
[C#]
public System.String FriendlyName;
Remarks
The FriendlyName property is localized according to the language indicated by the UserInfoHeader.Culture property.
For more information about FriendlyNames property values, see CountryRegion Entity IDs.
Example
[Visual Basic]
'Get CountryRegionInfo for the United States
Dim entityIDs(0) As Integer
entityIDs(0) = 244
Dim myCountryRegionInfo() As CountryRegionInfo
myCountryRegionInfo = commonService.GetCountryRegionInfo(entityIDs)
'Output the information
Console.WriteLine(myCountryRegionInfo(0).FriendlyName)
Console.WriteLine(myCountryRegionInfo(0).EntityID.ToString())
Console.WriteLine(myCountryRegionInfo(0).Iso2)
Console.WriteLine(myCountryRegionInfo(0).Iso3)
Console.WriteLine(myCountryRegionInfo(0).OfficialName)
Console.WriteLine(myCountryRegionInfo(0).LatLong.Latitude.ToString() _
+ ", " + myCountryRegionInfo(0).LatLong.Longitude.ToString())
[C#]
//Get CountryRegionInfo for the United States
int[] entityIDs= new int[1];
entityIDs[0] = 244;
CountryRegionInfo[] myCountryRegionInfo;
myCountryRegionInfo = commonService.GetCountryRegionInfo(entityIDs);
//Output the information
Console.WriteLine(myCountryRegionInfo[0].FriendlyName);
Console.WriteLine(myCountryRegionInfo[0].EntityID.ToString());
Console.WriteLine(myCountryRegionInfo[0].Iso2);
Console.WriteLine(myCountryRegionInfo[0].Iso3);
Console.WriteLine(myCountryRegionInfo[0].OfficialName);
Console.WriteLine(myCountryRegionInfo[0].LatLong.Latitude.ToString()
+ ", " + myCountryRegionInfo[0].LatLong.Longitude.ToString());
See Also
CountryRegionInfo Class | UserInfoHeader.Culture Property | CountryRegion Entity IDs | CountryRegionInfo.OfficialName Property