Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

Address Class

This documentation is no longer available on MSDN. It is available as a CHM or PDF download. For the newest Geocoding, Imagery, Routing and Traffic services, see the Bing Maps REST Services

Contains parts of an address and the complete address.


public class Address

Name Description

Address

Initializes a new instance of an Address object.

Name Description

AddressLine

A string specifying the street line of an address. The AddressLine property is the most precise, official line for an address relative to the postal agency servicing the area specified by the Locality, PostalTown, or PostalCode properties. Typical use of this element would be to enclose a street address, private bag, or any other similar official address. Optional.

AdminDistrict

A string specifying the subdivision name within the country or region for an address. This element is also commonly treated as the first order administrative subdivision, but in some cases it is the second, third, or fourth order subdivision within a country, dependency, or region. Optional.

CountryRegion

A string specifying the country or region name of an address. Optional.

District

A string specifying the higher level administrative subdivision used in some countries or regions. Optional.

FormattedAddress

A string containing the complete address.

Locality

A string specifying the populated place for the address. This commonly refers to a city, but may refer to a suburb or neighborhood in certain countries. Optional.

PostalCode

A string specifying the post code, postal code, or ZIP Code of an address. Optional.

PostalTown

A string specifying the postal city of an address. Optional.

For an Address object to be valid, it must contain at least one context element such as PostalTown, PostalCode, AdminDistrict, District, Locality, or CountryRegion.

The following table shows how parts of an address in specific countries map to the properties of the Address class.

Property Austria, Belgium, Denmark, Finland, France, Germany, Greece, Luxembourg, Norway, Sweden, Switzerland, Taiwan, and The Netherlands Australia and Brazil Canada Italy, Portugal, and Spain Hong Kong Puerto Rico Singapore and New Zealand United Kingdom United States

AddressLine

Street address

Street address

Street address

Street address

Street address

Street address

Street address

Address line 1

Street address

Locality

City

City

City

City

City

City

City

Address line 2

City

PostalTown

Postal city

City

AdminDistrict

State

Province

Province

Territory

State

District

District

PostalCode

Postcode

Postal code

Postal code

Postcode

Postal code

Postcode

Postcode

Zip code

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.