CountryRegionContext Class
CountryRegionContext Class
Contains the country/region context that is associated with a request. Objects of this type are used to populate the UserInfoHeader.Context property. The default context is the United States (EntityID=244, Iso2="US").
Public Class CountryRegionContext Inherits System.Object
[C#]
public class CountryRegionContext : System.Object
Public Properties
Name | Description |
---|---|
EntityID | 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). |
Iso2 | The International Organization for Standardization (ISO) two-letter country code representing the geographic context for the SOAP request and response. This property is optional if you use the EntityID property. The default value for the Iso2 property is "US" (United States). |
Remarks
You can use the CountryRegionContext class with either an EntityID property, an Iso2 property, or both. If you use both, 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.
If the request includes an EntityID value that is not supported for a particular operation, a SOAP fault is returned.
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.
See Also
UserInfoHeader.Context Property | Entity.ID Property | CountryRegion Entity IDs | MapPoint Web Service Data Sources and Capabilities