Share via


CountryRegionContext.EntityID Property

CountryRegionContext.EntityID Property

A number representing the Entity.ID property of a country/region, which is used to set the geographic context for the SOAP request and response. This property is optional if you use the Iso2 property. The default value for the EntityID property is 244 (United States).


Public EntityID As System.Integer = 0
    

[C#]

public System.Int32 EntityID;
   

Remarks

  • If you use both the EntityID property and the Iso2 property, they must refer to the same country/region; otherwise, a SOAP fault is returned.

    For more information about EntityID and Iso2 values, see CountryRegion Entity IDs.

  • Finding addresses, finding nearby points of interest, and creating routes are limited to certain countries/regions. For more information, see MapPoint Web Service Data Sources and Capabilities.

Example

[Visual Basic]

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



[C#]

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