MapAddress 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表地址。
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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
當您呼叫MapLocationFinder類別的方法時,MapLocationFinderResult的Locations屬性會傳回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 |
取得或設定位址的縣市。 |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應