Share via


CountryRegionContext.EntityID Property

The number representing the Entity.ID property of a country or region; used to set the geographic context for the SOAP request and response. Integer. Optional if the Iso2 property is used.

Public Dim EntityID As Integer = 0
    Member of [Namespace].CountryRegionContext
[C#]
public System.Int32 EntityID
    Member of [Namespace].CountryRegionContext

Remarks

  • If the EntityID property is passed along with the Iso2 property, they must both refer to the same country or region; otherwise, a SOAP fault is returned.
  • For a table of MapPoint Web Service EntityID properties, see CountryRegion Entity IDs.
  • Finding addresses, finding nearby points of interest, and creating routes are limited to certain countries in valid data sources. The MapPoint Web Service Data Sources and Capabilities table lists the countries or regions in a data source that are valid for performing these functions.

Example

 
[Visual Basic] 
'This example assumes that the service instance 
''commonService' has already been created and that 
'the MapPoint Web Service namespace has been imported 

Dim myUserInfoHeader As New UserInfoHeader()
Dim myContext As New CountryRegionContext()
myContext.EntityID = 244
myUserInfoHeader.Context = myContext
commonService.UserInfoHeaderValue = myUserInfoHeader

 
[C#]
//This example assumes that the service instance 
//'commonService' has already been created and that 
//the MapPoint Web Service namespace has been imported 

UserInfoHeader myUserInfoHeader  = new UserInfoHeader();
CountryRegionContext myContext  = new CountryRegionContext();
myContext.EntityID = 244;
myUserInfoHeader.Context = myContext;
commonService.UserInfoHeaderValue = myUserInfoHeader;
 

See Also

CountryRegionContext Class | Entity.ID Property | CountryRegionContext.Iso2 Property | CountryRegion Entity IDs | MapPoint Web Service Data Sources and Capabilities