CLGeocoder.GeocodePostalAddressAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GeocodePostalAddressAsync(CNPostalAddress) | |
GeocodePostalAddressAsync(CNPostalAddress, NSLocale) |
GeocodePostalAddressAsync(CNPostalAddress)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodePostalAddressAsync (Contacts.CNPostalAddress postalAddress);
abstract member GeocodePostalAddressAsync : Contacts.CNPostalAddress -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodePostalAddressAsync : Contacts.CNPostalAddress -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
参数
- postalAddress
- CNPostalAddress
返回
Task<CLPlacemark[]>
表示异步 GeocodePostalAddress 操作的任务。 TResult 参数的值为 CoreLocation.CLGeocodeCompletionHandler。
- 属性
注解
GeocodePostalAddressAsync 方法适合用于 C# 异步,方法是将控件返回到具有表示操作的 Task 的调用方。
内容待定。
适用于
GeocodePostalAddressAsync(CNPostalAddress, NSLocale)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]> GeocodePostalAddressAsync (Contacts.CNPostalAddress postalAddress, Foundation.NSLocale locale);
abstract member GeocodePostalAddressAsync : Contacts.CNPostalAddress * Foundation.NSLocale -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
override this.GeocodePostalAddressAsync : Contacts.CNPostalAddress * Foundation.NSLocale -> System.Threading.Tasks.Task<CoreLocation.CLPlacemark[]>
参数
- postalAddress
- CNPostalAddress
- locale
- NSLocale
返回
Task<CLPlacemark[]>
- 属性