Share via


CountryRegionInfo.EntityID Property

CountryRegionInfo.EntityID Property

A number representing the country/region Entity.ID property.


Public EntityID As System.Integer


[C#]

public System.Int32 EntityID;

Remarks

Example

[Visual Basic]

'Populate a drop-down list box with names of countries or regions
Dim myCountryRegionInfo() As CountryRegionInfo
myCountryRegionInfo = commonService.GetCountryRegionInfo(Nothing)

Dim i As Integer
For i = 0 To myCountryRegionInfo.Length - 1
 ListBox1.Items.Add(myCountryRegionInfo(i).FriendlyName)
Next i



[C#]

//Populate a drop-down list box with names of countries or regions
CountryRegionInfo[] myCountryRegionInfo;
myCountryRegionInfo = commonService.GetCountryRegionInfo(null);

for(int i = 0; i < myCountryRegionInfo.Length; i++)
{
 ListBox1.Items.Add(myCountryRegionInfo[i].FriendlyName);
}


See Also

  CountryRegionInfo Class   |   Entity.ID Property   |   CountryRegion Entity IDs