MapAddress Class

Definition

Represents an address.

public ref class MapAddress sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapAddress final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapAddress
Public NotInheritable Class MapAddress
Inheritance
Object Platform::Object IInspectable MapAddress
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

A collection of MapLocation objects is returned through the Locations property of the MapLocationFinderResult when you call the methods of the MapLocationFinder class. Each MapLocation object has an Address property which returns a MapAddress.

Your Universal Windows app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.

See Request a maps authentication key.

Properties

BuildingFloor

Gets or sets the building floor of an address.

BuildingName

Gets or sets the building name of an address.

BuildingRoom

Gets or sets the building room of an address.

BuildingWing

Gets or sets the building wing of an address.

Continent

Gets or sets the continent of an address.

Country

Gets or sets the country of an address.

CountryCode

Gets or sets the country code of an address.

District

Gets or sets the district of an address.

FormattedAddress

Gets the complete address in string format.

Neighborhood

Gets or sets the neighborhood of an address.

PostCode

Gets or sets the postal code of an address.

Region

Gets or sets the region (for example, the state or province) of an address.

RegionCode

Gets or sets the code for the region (for example, the state or province) of an address.

Street

Gets or sets the street of an address.

StreetNumber

Gets or sets the street number of an address.

Town

Gets or sets the town or city of an address.

Applies to

See also