Share via


CountryRegionInfo.OfficialName Property

CountryRegionInfo.OfficialName Property

The official name of a country/region. For the short name of the country/region, use the FriendlyName property.


Public OfficialName As System.String


[C#]

public System.String OfficialName;

Remarks

Example

[Visual Basic]

Dim myCountryRegionInfo() As CountryRegionInfo
Dim entityIDs(0) As Integer
entityIDs(0) = 244
myCountryRegionInfo = commonService.GetCountryRegionInfo(entityIDs)
Console.WriteLine("The Entity ID for " + myCountryRegionInfo(0).FriendlyName _
 + " is " + myCountryRegionInfo(0).EntityID.ToString())



[C#]

CountryRegionInfo[] myCountryRegionInfo;
int[] entityIDs = new int[1];
entityIDs[0] = 244;
myCountryRegionInfo = commonService.GetCountryRegionInfo(entityIDs);
Console.WriteLine("The Entity ID for " + myCountryRegionInfo[0].FriendlyName 
 + " is " + myCountryRegionInfo[0].EntityID.ToString());


See Also

  CountryRegionInfo Class   |   UserInfoHeader.Culture Property   |   CountryRegion Entity IDs   |   CountryRegionInfo.FriendlyName Property