CLGeocoder.GeocodePostalAddressAsync 方法

定义

重载

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

返回

表示异步 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

返回

属性

适用于