ICivicAddressReport 接口 (locationapi.h)

[Win32 位置 API 可用于“要求”部分中指定的操作系统。 它可能在后续版本中变更或不可用。 请改用 Windows.Devices.Geolocation API。 ]

ICivicAddressReport 表示包含街道地址形式的信息的位置报告。

继承

ICivicAddressReport 接口继承自 ILocationReportICivicAddressReport 还具有以下类型的成员:

方法

ICivicAddressReport 接口具有这些方法。

 
ICivicAddressReport::GetAddressLine1

检索街道地址的第一行。
ICivicAddressReport::GetAddressLine2

检索街道地址的第二行。
ICivicAddressReport::GetCity

检索城市名称。
ICivicAddressReport::GetCountryRegion

检索两个字母的国家或地区代码。
ICivicAddressReport::GetDetailLevel

保留。 (ICivicAddressReport.GetDetailLevel)
ICivicAddressReport::GetPostalCode

检索邮政编码。
ICivicAddressReport::GetStateProvince

检索省/直辖市或省/直辖市名称。

注解

请注意,如果值不可用,则任何属性值都可以为 NULL

要求

   
最低受支持的客户端 Windows 7 [仅限桌面应用]
最低受支持的服务器 无受支持的版本
目标平台 Windows
标头 locationapi.h