Share via


CountryRegionContext.Iso2 Property

CountryRegionContext.Iso2 Property

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).


Public Iso2 As System.String
    

[C#]

public System.String Iso2;
   

Remarks

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

    For more information about 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.Iso2 = "US"
myUserInfoHeader.Context = myContext
commonService.UserInfoHeaderValue = myUserInfoHeader



[C#]

UserInfoHeader myUserInfoHeader  = new UserInfoHeader();
CountryRegionContext myContext  = new CountryRegionContext();
myContext.Iso2 = "US";
myUserInfoHeader.Context = myContext;
commonService.UserInfoHeaderValue = myUserInfoHeader;


See Also

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