Share via


MapAddress 類別

定義

代表地址。

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
繼承
Object Platform::Object IInspectable MapAddress
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

當您呼叫MapLocationFinder類別的方法時,MapLocationFinderResultLocations屬性會傳回MapLocation物件的集合。 每個 MapLocation 物件都有 一個 Address 屬性,會傳回 MapAddress。

您的通用 Windows 應用程式必須先經過驗證,才能使用Windows.Services.Maps命名空間中的MapControl和地圖服務。 若要驗證您的應用程式,則必須指定地圖驗證金鑰。

請參閱 要求地圖驗證金鑰

屬性

BuildingFloor

取得或設定位址的建築物樓層。

BuildingName

取得或設定位址的建置名稱。

BuildingRoom

取得或設定位址的建築物空間。

BuildingWing

取得或設定位址的建置 Wing。

Continent

取得或設定位址的大陸。

Country

取得或設定位址的國家/地區。

CountryCode

取得或設定位址的國家/地區代碼。

District

取得或設定位址的區域。

FormattedAddress

取得字串格式的完整位址。

Neighborhood

取得或設定位址的鄰近區域。

PostCode

取得或設定位址的郵遞區號。

Region

取得或設定區域 (,例如位址的州或省) 。

RegionCode

取得或設定區域 (的程式碼,例如位址的州或省) 。

Street

取得或設定位址的街道。

StreetNumber

取得或設定位址的街地號。

Town

取得或設定位址的縣市。

適用於

另請參閱